SA-MP Forums Archive
How to kick someone out of car... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to kick someone out of car... (/showthread.php?tid=134652)



How to kick someone out of car... - Steven82 - 17.03.2010

How could i make if a player is not a certain skin they cant enter the car then like 2 seconds later it kicks them out?? ex.( a civilian trys to enter PD car but will get kicked out when they get in.)


Re: Car respawn - Carlton - 17.03.2010

pawn Код:
public OnGameModeInit() {
   SetTimer("RespawnAllVehicles", 86400000, 1);
}

forward RespawnAllVehicles();
public RespawnAllVehicles() {
   for(new v = 0; v < MAX_VEHICLES; v ++ ) {
      SetVehicleToRespawn(v);
   }
}
Yes 86400000 is 24 hours.

http://www.******.com/search?hl=en&s...n+mil&gs_rfai=


Re: Car respawn - Steven82 - 17.03.2010

Thank you very much you are a life saver xD.


Re: Car respawn - Carlton - 17.03.2010

Quote:
Originally Posted by Steven82
Thank you very much you are a life saver xD.
No problem. :P