help me pls
#7

okay here you go


Quote:

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[Police] )
{
if(gTeam[playerid] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car!");
return 1;
}
}
if(CarCheck == Cars[GroveStreet] )
{
if(gTeam[playerid] != 2)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car!");
return 1;
}
}
return 1;
}
return 1;
}


police team got number 2 and grove got number 1
Reply


Messages In This Thread
help me pls - by Diti1 - 03.08.2014, 15:13
Re: help me pls - by LarryTiger - 03.08.2014, 15:23
Re: help me pls - by Diti1 - 03.08.2014, 15:28
Re: help me pls - by Stinged - 03.08.2014, 15:29
Re: help me pls - by Diti1 - 03.08.2014, 15:56
Re: help me pls - by ViniBorn - 03.08.2014, 16:32
Re: help me pls - by Diti1 - 03.08.2014, 16:46
Re: help me pls - by Diti1 - 03.08.2014, 20:35
Re: help me pls - by Dj_maryo1993 - 03.08.2014, 20:54
Re: help me pls - by Diti1 - 03.08.2014, 21:20

Forum Jump:


Users browsing this thread: 2 Guest(s)