Cars for Special players
#1

Hello, how can i do that the car with the id 416 only for medics is?
Who can make a little script, i forgot it..
Reply
#2

If you forgot it, you can refresh your memory Here.
Reply
#3

Quote:
Originally Posted by DJDhan
If you forgot it, you can refresh your memory Here.
Thats not what i mean, i mean that .. something like
if(IsVehicleID == 461) {
if(MedicTeam == 1) {
SendClientMEssage(player,sdflkds; "ok your cna drive this ")l
}
else
removeplayerfromvehicle

something like that
Reply
#4

That is just another way of doing it.

Код:
OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
  new model;
  model=GetVehicleModel(vehicleid);
  if(model==461)
  {
    if(MedicTeam==0)
    {
      RemovePlayerFromVehicle(playerid);
      return SendClientMessage(playerid,0xff0000aa,"This vehicle is for Medics only.");
    }
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)