Vaizdinė medžiaga bei pavyzdžiai
Nauji objektai# 0.3d RC2
# stuff made by cessil (Sep 2011)
# replacement sfpd interior without cell doors
19301, mp_sfpd_nocell, mp_policeSF, 50, 0
# cell door components that can be used in all PDs
19302, pd_jail_door01, pd_jail_door01, 299, 2097284
19303, pd_jail_door02, pd_jail_door02, 299, 2097284
19304, pd_jail_door_top01, pd_jail_door_top01, 299, 2097284
# taxi signs which can be attached to vehicles
19308, taxi01, taxi01, 150, 0
19309, taxi02, taxi02, 150, 0
19310, taxi03, taxi03, 150, 0
19311, taxi04, taxi04, 150, 0
# 0.3d RC3-3
# Area 51 fencing as seperate objects
19312, a51fencing, a51fencing, 200, 2097156
19313, a51fensin, a51fencing, 200, 0
# Car bullhorns
19314, bullhorns01, bullhorns01, 100, 0
# Deer
19315, deer01, deer01, 100, 0
# Ferris wheel cage with no roof
19316, FerrisCageBit01, FerrisWheel, 200, 0
# Guitars
19317, bassguitar01, bassguitar01, 100, 0
19318, flyingv01, flyingv01, 100, 0
19319, warlock01, warlock01, 100, 0
# Pumpkin
19320, pumpkin01, pumpkin01, 100, 0
#0.3d RC5-3 ?
19321, cuntainer, continX, 100, 2097152
#0.3d RC7
# LS Mall Replacement
19322, mallb_laW02, mall_law, 200, 0
19323, lsmall_shop01, lsmall_shops, 200, 0
19325, lsmall_window01, lsmall_shops, 200, 2097220
19326, 7_11_sign01, 7_11_posters, 100, 0
19327, 7_11_sign02, 7_11_posters, 100, 0
19328, 7_11_sign03, 7_11_posters, 100, 0
19329, 7_11_sign04, 7_11_posters, 100, 0
# fireman hats
19330, fire_hat01, firehats, 100, 0
19331, fire_hat02, firehats, 100, 0
# hot air balloons
19332, Hot_Air_Balloon01, balloon_texts, 200, 2097152
19333, Hot_Air_Balloon02, balloon_texts, 200, 2097152
19334, Hot_Air_Balloon03, balloon_texts, 200, 2097152
19335, Hot_Air_Balloon04, balloon_texts, 200, 2097152
19336, Hot_Air_Balloon05, balloon_texts, 200, 2097152
19337, Hot_Air_Balloon06, balloon_texts, 200, 2097152
19338, Hot_Air_Balloon07, balloon_texts, 200, 2097152
Objektų šalinimas
{
// Pašalinimi visi „vending“ maisto automatai
}
- Kiekvienas objektas susideda dažniausiai iš dviejų objektų. Vieno detalaus bei kito nedetalaus, kuris matomas iš toli. Norint sunaikinti objektą pilnai reikia sunaikinti, patį detalų objektą bei LOD objektą.
Garso transliacijos
KitaServeriams, kurie nori grąžinti telefono modelį naudojant SPECIAL_ACTION_USECELLPHONE, siūloma telefono modelį „prilipdyti“ prie žaidėjo rankos iš naujo. Pavyzdinis kodas:
if(strcmp(cmd,
"/usecell",
true) == 0) { return 1;
}
if(strcmp(cmd,
"/stopcell",
true) == 0) { return 1;
}
Pilnas pavyzdinis skriptas, ant žaidėjo ekrano uždedantis tam tikrą grafinį objektą:
if(strcmp(cmd,
"/tdsprite",
true) == 0) { new Text:txtSprite1;
txtSprite1
= TextDrawCreate(200.0,
220.0,
"samaps:map"); // Text is txdfile:texture TextDrawFont(txtSprite1,
4); // Font ID 4 is the sprite draw font return 1;
}
Grafinių objektų pavyzdžiai:
