#1

how can i forbid players to go in a hydra , tank , hunter and patriot
like a system that blocks these vehicle id's 470 , 432 , 520 , 425
that only let players with a cop rank allowed in that vehicle
the cop system from pen
Reply
#2

no one ?
Reply
#3

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new Float:x_pos, Float:y_pos, Float:z_pos;
  if((GetVehicleModel(vehicleid) == _MODEL_ID_YOU_WANT_) && (!_IS_PLAYER_COP_DEFINE_[playerid]))
  {
  GetPlayerPos(playerid, x_pos, y_pos, z_pos);
  SetPlayerPos(playerid, x_pos, y_pos, z_pos);
  SendClientMessage(playerid, 0xFFFFFFAA, "You can't enter this vehicle!");
  }
  return 1;
}
Reply
#4

Download...
Reply
#5

Quote:
Originally Posted by illay
Download...
not a blocker
a block for some people
who dont have the rank to use it
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)