03.04.2012, 12:46
I'm trying to make a specific team in-able of entering a vehicle. *Its a zombie class*
Is there anyway to code this?
Thanks
Is there anyway to code this?
Thanks
public OnPlayerEnterVehicle(playerid,vehicleid) { if(Team[playerid] == TEAM_ZOMBIE) // Change this to how you deal with teams in your script { RemovePlayerFromVehicle(playerid); } }
public OnPlayerStateChange(playerid,newstate,oldstate) { if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) Ѓ{ if(Team[playerid] == TEAM_ZOMBIE) // Change this to how you deal with teams in your script { RemovePlayerFromVehicle(playerid); } } }