#2

Example:

pawn Код:
new vTeamGS;

public OnGameModeInit()
{
    vTeamGS = AddStaticVehicleEx(432, 2729.6108, -2435.5110, 13.6465, 270.4632, 43, 0, 900);
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if(gTeam[playerid] != TEAM_GS && GetPlayerVehicleID(playerid) == vTeamGS) RemovePlayerFromVehicle(playerid);
    }
}
Reply


Messages In This Thread
Cars - by nezo2001 - 14.12.2014, 16:04
Re: Cars - by SickAttack - 14.12.2014, 16:10
Re: Cars - by semara123 - 14.12.2014, 16:11
Re: Cars - by Lawbringer - 14.12.2014, 16:28
Re: Cars - by nezo2001 - 14.12.2014, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)