14.12.2014, 16:10
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);
}
}