OnPlayerState
#7

try this

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
        new carid = GetPlayerVehicleID(playerid);
        new Model = GetVehicleModel(carid);
        if(Model == 407 || Model == 427 || Model == 432 || Model == 433 || Model == 490 || Model == 497 || Model == 523 || Model == 52 || Model == 596 || Model == 597 || Model == 59 || Model == 599 || Model == 601)
        {
            if(AccInfo[playerid][Police] == 0)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,0xFF0000FF,"Police Only!");
            }
        }
}
Reply


Messages In This Thread
OnPlayerState - by Harith - 05.09.2015, 06:40
Re: OnPlayerState - by Yashas - 05.09.2015, 06:53
Re: OnPlayerState - by Harith - 05.09.2015, 08:19
Re: OnPlayerState - by Fancy - 05.09.2015, 08:36
Re: OnPlayerState - by Harith - 05.09.2015, 17:07
Re: OnPlayerState - by Logofero - 05.09.2015, 17:12
Re: OnPlayerState - by IceBilizard - 05.09.2015, 17:13
Re: OnPlayerState - by Logofero - 05.09.2015, 17:14
Re: OnPlayerState - by Harith - 05.09.2015, 17:18
Re: OnPlayerState - by IceBilizard - 05.09.2015, 17:18

Forum Jump:


Users browsing this thread: 4 Guest(s)