27.11.2013, 19:24
Fiz aqui cara, aceito criticas e etc. kkkkkkk se Nгo gostou pega e faz
Quote:
if(strcmp(cmd, "/sirene1", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { if(!IsACop(playerid))return SendClientMessage(playerid, -1, "Vocк nгo й COP!"); if(GetPVarInt(playerid, "SireneStatus") == 0) { SetPVarInt(playerid, "SireneStatus", 1); SetPVarInt(playerid, "undercover", CreateObject(19419, 0, 0, 0, 0, 0, 0)); SetPVarInt(playerid, "undercover1", CreateObject(19419, 0, 0, 0, 0, 0, 0)); AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000); AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000); return 1; } else if(GetPVarInt(playerid, "SireneStatus") == 1) { SetPVarInt(playerid, "SireneStatus", 0); DestroyObject(GetPVarInt(playerid, "undercover")); DestroyObject(GetPVarInt(playerid, "undercover1")); return 1; } } } return 1; } |