You can remove / attach the sticker.
All possible checks removed at VehicleDeath.
List of cars(id) on which you can use: 411 477 451 402 579 509 494 562 503 502 429 400 533 541 445 419 495 506 415 559 560 421 434
OnVehicleDeath:
VehicleNames(who does't have):
Screenshot:
All possible checks removed at VehicleDeath.
List of cars(id) on which you can use: 411 477 451 402 579 509 494 562 503 502 429 400 533 541 445 419 495 506 415 559 560 421 434
- Código:
const STICKER_COUNT = 23;
enum e_Sticker {
_id,
Float:_x,
Float:_y,
Float:_z,
Float:_fX,
Float:_fY,
Float:_fZ
};
new STICKER_DATA [STICKER_COUNT] [ e_Sticker ] = {
{451, -0.026, -1.473, 0.422, 19.399, 0.600, 0.599},
{402, -0.020, -1.778, 0.429, 22.900, 0.000, 0.000},
{477, 0.009, -2.372, 0.331, 2.299, 0.000, 0.000},
{411, -0.009, -1.015, 0.548, 24.400, 0.000, 0.000},
{541, -0.010, -1.266, 0.471, 12.999, 0.000, 0.000},
{445, -0.020, -1.691, 0.547, 37.299, 0.000, 0.000},
{419, 0.000, -1.990, 0.231, 3.699, 0.000, 0.000},
{495, -0.480, -2.249, -0.097, 88.799, 0.000, 0.00},
{506, -0.020, -1.607, 0.376, 16.799, 0.000, 0.000},
{415, -0.020, -1.901, 0.290, 5.099, 0.000, 0.000},
{559, -0.010, -1.851, 0.464, 15.600, 0.000, 0.000},
{560, -0.020, -1.180, 0.662, 29.200, 0.000, 0.000},
{434, -0.020, -1.973, -0.056, 69.400, 0.000, 0.000},
{421, -0.020, -1.667, 0.463, 35.700, 0.000, 0.000},
{533, 0.000, -2.411, 0.260, 0.000, 0.000, 0.000},
{400, -0.030, -2.220, 0.416, 65.099, 0.000, 0.000},
{429, -0.030, -1.531, 0.320, 0.000, 0.000, 0.000},
{503, -0.020, -2.332, 0.274, 7.399, 0.000, 0.000},
{562, -0.020, -1.193, 0.621, 31.400, 0.000, 0.000},
{502, -0.020, -1.778, 0.382, 31.199, 0.000, 0.000},
{579, -0.010, -2.838, 0.361, 75.099, 0.000, 0.800},
{409, 0.000, -2.691, 0.527, 49.099, 0.000, 0.000},
{494, 0.979, -2.497, -0.088, 81.899, -4.599, 90.800}
};
new sticker_object[MAX_VEHICLES] = {-1, ...};
stickASticker(playerid, status, vehicleid)
{
if (1 == status) {
new
count;
for( new v; v < STICKER_COUNT; v++) {
if( GetVehicleModel(vehicleid) == STICKER_DATA [v] [_id] ) {
sticker_object[vehicleid] = CreateDynamicObject(1547,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
SetDynamicObjectMaterialText(sticker_object[vehicleid], 0, "Supreme", 120, "Ariel", 120, 1, 0xFFFFFFFF, 0xFFB50100, 1);
AttachDynamicObjectToVehicle(sticker_object[vehicleid],vehicleid,STICKER_DATA [v] [_x],STICKER_DATA [v] [_y],\
STICKER_DATA [v] [_z], STICKER_DATA [v] [_fX], STICKER_DATA [v] [_fY],STICKER_DATA [v] [_fZ]);
count++;
}
}
if (0 == count) {
new
string [55 + 16 + 1];
format( string, sizeof string, "Can't use car brand sticker {ffd400}%s",VehicleNames[GetVehicleModel(vehicleid)-400]);
return SendClientMessage(playerid, -1, string);
}
}
else if (0 == status) {
if (0 == vehicleid)
return 1;
if (-1 == sticker_object[vehicleid])
return SendClientMessage(playerid, -1, "There is no sticker Supreme on this machine");
DestroyDynamicObject(sticker_object[vehicleid]);
sticker_object[vehicleid] = -1;
}
new
fmt[128];
format(fmt, sizeof fmt, "You %s sctiker 'Supreme' on %s", \
(status) ? ("install") : ("removed"), VehicleNames[GetVehicleModel(vehicleid)-400]);
return SendClientMessage(playerid, 0xffd400ff, fmt);
}
CMD:sticker(playerid) {
if (-1 == sticker_object[GetPlayerVehicleID(playerid)])
return stickASticker(playerid, 1, GetPlayerVehicleID(playerid));
else
return stickASticker(playerid, 0, GetPlayerVehicleID(playerid));
}
OnVehicleDeath:
- Código:
if (sticker_object[vehicleid] != -1) {
DestroyDynamicObject(sticker_object[vehicleid]);
sticker_object[vehicleid] = -1;
}
VehicleNames(who does't have):
- Código:
new VehicleNames[212][] = {
"Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
"Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
"Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
"Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
"Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
"Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
"Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
"Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa","RC Goblin","Hotring A","Hotring B",
"Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain",
"Nebula","Majestic","Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
"Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover",
"Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
"Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight","Trailer",
"Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer A","Emperor",
"Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","Andromada","Dodo","RC Cam","Launch","Police Car","Police Car",
"Police Car","Police Ranger","Picador","S.W.A.T.","Alpha","Phoenix","Glendale","Sadler","L Trailer A","L Trailer B",
"Stair Trailer","Boxville","Farm Plow","U Trailer" };
Screenshot: