18.02.2013, 11:21
For example. X puts siren on.if Y takes Siren off the siren gets bugged /gon!Please help me
Quote:
if(strcmp(cmd, "/gon", true) == 0) { if (PlayerInfo[playerid][pLeader] == 7) { new VID3 = governcar[3]; if(Siren[VID3] == false) { format(string, sizeof(string), "* %s a pus girofarul pe masina.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); govern3[playerid] = CreateObject(.....); AttachObjectToVehicle(govern3[playerid],governcar[3],......); //Object Model: 18646 | Siren[VID3] = true; } else if(Siren[VID3] == true) { format(string, sizeof(string), "* %s a luat girofarul de pe masina.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); DestroyObject(govern3[playerid]); Siren[VID3] = false; } } return 1; } |