05.08.2011, 22:53
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
SendClientMessage(playerid,ADMIN_RED,"Error: Zombies cant drive!!");
RemovePlayerFromVehicle(playerid,vehicleid);
return 1;
}
}
return 1;
}