04.03.2012, 09:07
An example of a neon light it
and one that eliminates everywhere is
Код:
else if(strcmp(x_nr,"roz",true) == 0) { if(PlayerInfo[playerid][pPcarkey] != 999) { if (CarInfo[carid][cNeon] == 1) { if(NeonStatus[carr] == 0) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~Neon ~g~on", 4000, 3); } } else SCM(playerid, COLOR_GRAD3, "** You don't have neon !"); return 1; } else SCM(playerid, COLOR_GRAD3, "** You don't own a car !"); return 1; }
Код:
DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon11")); DeletePVar(playerid, "Status"); DestroyObject(18647); DestroyObject(18648); DestroyObject(18649); DestroyObject(18652); DestroyObject(18651); DestroyObject(18650);