How do i make that skin id 109 can enter car id 402 and other cant, team etc..
#1

i want like team car or something
that only certain skin or team can use a car
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
  if(vehicleid == 402 && GetPlayerSkin(playerid) != 109)
  {
    RemovePlayerFromVehicle(playerid);
   }
   //rest of callback
   return 1;
}
Reply
#3

@Hiddos: Your code won't work, because OnPlayerEnterVehicle is called when player presses the vehicle-ENTER key and if he is near any vehicle.
Use OnPlayerStateChange for that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)