[help] im not sure why this wont work
#2

Use OnPlayerStateChange callback.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehid = GetPlayerVehicleID(playerid);
        new teamid = GetPlayerTeam(playerid);

        if(GetVehicleModel(vehid) == 596)
        {
            if(teamid == 3)
            {
                SendClientMessage(playerid, COLOR_ROYALBLUE, "You Are In The {6600FF}LSPD, {99FF00}You Can Drive This");
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "You Are Not In The {6600FF}LSPD, {CC0000}You Cannont Drive This");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[help] im not sure why this wont work - by fangoth1 - 31.12.2010, 07:15
Re: [help] im not sure why this wont work - by MadeMan - 31.12.2010, 07:49
Re: [help] im not sure why this wont work - by fangoth1 - 31.12.2010, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)