Please Help-Protect The Prime Minister
#4

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
You need to edit the 'CARIDHERE' and 'GTEAM HERE' Items items in the 'pawn' code.

pawn Код:
#include <vstream>
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    tAxI_OnPlayerStateChange(playerid,newstate,oldstate);
    new carid = GetVehicleModel(GetPlayerVehicleID(playerid));
   

    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER && gTeam[playerid] == GTEAM HERE)
    {
    RemovePlayerFromVehicle(playerid);
    }
   
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && gTeam[playerid] == GTEAM HERE)
    {
    if(carid == CARIDHERE)
    {
        SendClientMessage(playerid,0xAA3333AA,"This class cannot fly planes and has removed you.");
        RemovePlayerFromVehicle(playerid);
    }
    else
    {
   
    }
    }

    return 1;
}
Thank toy very much
Reply


Messages In This Thread
Please Help-Protect The Prime Minister - by msvu - 02.05.2011, 19:20
Re: Please Help-Protect The Prime Minister - by Vero - 02.05.2011, 20:47
Re: Please Help-Protect The Prime Minister - by dr.pepper - 02.05.2011, 22:28
Re: Please Help-Protect The Prime Minister - by msvu - 03.05.2011, 15:08

Forum Jump:


Users browsing this thread: 4 Guest(s)