Tag Missmatch
#10

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
The guy abouve is right. Sohuldn't it be like:

pawn Код:
PlayerInfo[playerid][Rank] != RANK_AIRFORCE
??
That's what i was thinking of.
EDIT
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 && PlayerInfo[playerid][Rank] != RANK_AIRFORCE && PlayerInfo[playerid][Rank] != RANK_LEGEND)
            {
                SendClientMessage(playerid, COLOR_RED, "You need to be the airforce to drive the Hydra!");//
                RemovePlayerFromVehicle(playerid);
            }
            else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 && PlayerInfo[playerid][Rank] != RANK_AIRFORCE && PlayerInfo[playerid][Rank] != RANK_LEGEND)//
            {
                SendClientMessage(playerid, COLOR_RED, "You need to be the airforce to drive the Hunter!");
                RemovePlayerFromVehicle(playerid);
            }
            else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 476 && PlayerInfo[playerid][Rank] != RANK_AIRFORCE && PlayerInfo[playerid][Rank] != RANK_LEGEND)//
            {
                SendClientMessage(playerid, COLOR_RED, "You need to be the airforce to drive the Rustler!");
                RemovePlayerFromVehicle(playerid);
            }
            else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432 && PlayerInfo[playerid][Rank] != RANK_AIRFORCE && PlayerInfo[playerid][Rank] != RANK_LEGEND)//
            {
                SendClientMessage(playerid, COLOR_RED, "You need to be a tanker to drive the Rhino!");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Tag Missmatch - by Odyssey - 02.08.2011, 21:24
AW: Tag Missmatch - by samtey - 02.08.2011, 21:26
Re: Tag Missmatch - by Odyssey - 02.08.2011, 21:27
AW: Tag Missmatch - by samtey - 02.08.2011, 21:33
Re: Tag Missmatch - by Odyssey - 02.08.2011, 21:36
AW: Tag Missmatch - by samtey - 02.08.2011, 21:36
Re: Tag Missmatch - by Odyssey - 02.08.2011, 21:39
Re: Tag Missmatch - by Stylock - 02.08.2011, 21:47
Re: Tag Missmatch - by sleepysnowflake - 02.08.2011, 21:49
Re: Tag Missmatch - by FireCat - 02.08.2011, 21:51
Re: Tag Missmatch - by sleepysnowflake - 02.08.2011, 21:56
Re: Tag Missmatch - by Odyssey - 02.08.2011, 21:57

Forum Jump:


Users browsing this thread: 3 Guest(s)