Stop people from using hydra/hunter/rhino when outside a dm
#9

How about SetPlayerHealth(playerid,0.0); at OnPlayerEnterVehicle

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if((GetPlayerVehicleID(vehicleid) == 432)||(GetPlayerVehicleID(vehicleid) == 425)||(GetPlayerVehicleID(vehicleid) == 520)
  {
     if(DMZone[playerid] == 0)
     {
      SetPlayerHealth(playerid,0.0);
      SendClientMessage(playerid,0xFFFFFFAA,"SERVER: You cannot enter this vehicle while not in the /dm zone.");
      return 1;
   }
  }


  return 1;
}
A bit noobish, but it will do what it should, and after a couple if kills the player should have understood to stay away.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)