Siren Problem
#8

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;
}

Reply


Messages In This Thread
Siren Problem - by Akcent_Voltaj - 17.02.2013, 16:29
Re: Siren Problem - by lollie123 - 17.02.2013, 16:41
Re: Siren Problem - by Akcent_Voltaj - 17.02.2013, 16:42
Re: Siren Problem - by Akcent_Voltaj - 17.02.2013, 17:48
Re: Siren Problem - by IstuntmanI - 17.02.2013, 17:54
Re: Siren Problem - by Akcent_Voltaj - 17.02.2013, 18:00
Re: Siren Problem - by Akcent_Voltaj - 17.02.2013, 18:03
Re: Siren Problem - by Akcent_Voltaj - 18.02.2013, 11:21

Forum Jump:


Users browsing this thread: 2 Guest(s)