OnPlayerstatechange Problem
#1

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new newcar = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(VehicleInfo[newcar][vMember] == gTeam[playerid] && VehicleInfo[newcar][vRank] <= pInfo[playerid][pRank])
        {

            SendClientMessage(playerid,COLOR_RED,"You can't drive this car");
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
I want to make that if gTeam == VMember doesn't eject player from vehicle but it happens on the contrary
Reply


Messages In This Thread
OnPlayerstatechange Problem - by rati555 - 19.01.2012, 16:37
Re: OnPlayerstatechange Problem - by mineralo - 19.01.2012, 17:03
Re: OnPlayerstatechange Problem - by rati555 - 19.01.2012, 17:19
Re: OnPlayerstatechange Problem - by sameer419 - 19.01.2012, 17:23
Re: OnPlayerstatechange Problem - by rati555 - 19.01.2012, 17:25
Re: OnPlayerstatechange Problem - by [ABK]Antonio - 19.01.2012, 17:42
Re: OnPlayerstatechange Problem - by rati555 - 19.01.2012, 17:51

Forum Jump:


Users browsing this thread: 2 Guest(s)