Facebook
From Filip, 1 Year ago, written in Plain Text.
This paste is a reply to dlaragngerazjebanego from Filip - view diff
Embed
Download Paste or View Raw
Hits: 249
  1. #include <YSI\y_iterate>
  2.  
  3. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  4. {
  5.         if(!IsVehicleOccupied(vehicleid))
  6.         {
  7.                 ClearAnimations(playerid);
  8.         }
  9.     return 1;
  10. }
  11.  
  12. stock IsVehicleOccupied(vid)
  13. {
  14.         foreach(new p : Player)
  15.         {
  16.                 if(GetPlayerVehicleID(vid)) return 1;
  17.         }
  18.         return 0;
  19. }