02.12.2017, 22:48
Hello again! So I would like to make this command "toggable", like if I input "/siren" a siren will appear, but if I input "/siren" again, the siren would disappear with it's message.
Thank you!!!!!
PHP код:
new glob4;
new glob3;
PHP код:
CMD:siren(playerid, params[])
{
if(fInfo[playerid][fPolice] != 1) return SCM(playerid, COR_CINZA, "You are not a Police Officer.");
glob4 = GetPlayerVehicleID(playerid);
glob3 = CreateObject(18646, -0.7, 0.15, 0.85, 0.0, 0.0, 96.0, 0);
AttachObjectToVehicle(glob3, glob4, 0.014999, -0.379999, 0.914999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_GREY, "You turned your siren on.");
return 1;
}