Lil help! +rep
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);//variable to get vehicle ids
    if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 425 && gPlayerClass[playerid] == SOLDIER && gPlayerClass[playerid] == SNIPER && gPlayerClass[playerid] == MECHANIC && gPlayerClass[playerid] == MEDIC)
    {
        SendClientMessage(playerid, COLOR_RED, "You Need to  be an Agent Or Special Agent to fly Hunter");
        RemovePlayerFromVehicle(playerid);
    }
Just a quick example, add it under OnPlayerStateChange and add
pawn Код:
if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid)...
Reply


Messages In This Thread
Lil help! +rep - by Nirzor - 29.09.2012, 15:09
Re: Lil help! +rep - by newbienoob - 29.09.2012, 15:13
Re: Lil help! +rep - by XtremeR - 29.09.2012, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)