TYUI

Invisible vehicle by Miroslav

Nov 7th, 2013
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.55 KB | None | 0 0
  1. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2. {
  3.     if(IsPlayerAdmin(playerid))
  4.     {
  5.         LinkVehicleToInterior(vehicleid,99);
  6.         SetPlayerInterior(playerid,99);
  7.                 PutPlayerInVehicle(playerid,vehicleid,0);
  8.     }
  9.     return 1;
  10. }
  11.  
  12. public OnPlayerExitVehicle(playerid, vehicleid)
  13. {
  14.     if(IsPlayerAdmin(playerid))
  15.     {
  16.         LinkVehicleToInterior(vehicleid,0);
  17.         SetPlayerInterior(playerid,0);
  18.             new Float:x,Float:y,Float:z;
  19.             GetPlayerPos(playerid,x,y,z);
  20.             SetPlayerPos(playerid,x,y,z);
  21.     }
  22.     return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment