26.07.2012, 01:02
(
Последний раз редактировалось matheuspain; 26.07.2012 в 14:31.
)
Код:
if(!strcmp(cmdtext,"/sirene",true)) if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um policial."); return true; } if(OnDuty[playerid] != 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo Bateu o cartгo."); return true; } { if(GetPVarInt(playerid, "sirene")) { SetPVarInt(playerid, "sirene", false); } else { new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0); AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000); //Objeto:19419 SendClientMessage(playerid, COR_PM, "Voce colocou uma sirene em seu veнculo."); SetPVarInt(playerid, "sirene", true); } } return 1; }