OnPlayerStateChange help
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER) // Edited
    {
        if(IsAdminv(GetPlayerVehicleID(playerid)))
        {
            if(PlayerInfo[playerid][Admin] < 1)
            {
            new vehicleid;
            vehicleid= GetPlayerVehicleID(playerid);
            DestroyVehicle(vehicleid);
            SendClientMessage(playerid, 0xFF0000FF, ""RED"ERROR:"GREY" Unauthorized Vehicle");
            }
return 1; // Added
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerStateChange help - by kesarthakur - 25.09.2014, 09:53
Re: OnPlayerStateChange help - by Ox1gEN - 25.09.2014, 10:06
Re: OnPlayerStateChange help - by kesarthakur - 25.09.2014, 10:09
Re: OnPlayerStateChange help - by M0HAMMAD - 25.09.2014, 11:41
Re: OnPlayerStateChange help - by DaniceMcHarley - 25.09.2014, 12:11
Re: OnPlayerStateChange help - by ranme15 - 25.09.2014, 12:37
Re: OnPlayerStateChange help - by kesarthakur - 25.09.2014, 13:02
Re: OnPlayerStateChange help - by DaniceMcHarley - 25.09.2014, 14:32
Re: OnPlayerStateChange help - by kesarthakur - 25.09.2014, 16:30
Re: OnPlayerStateChange help - by Pottus - 25.09.2014, 17:15

Forum Jump:


Users browsing this thread: 3 Guest(s)