Advertisement
DraKiNs

[COD] SetOtherVehicleToPlayer

Jun 27th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.51 KB | None | 0 0
  1. /*
  2.     Created By DraKiNs
  3.    www.ips-team.blogspot.com
  4. */
  5.  
  6. SetOtherVehicleToPlayer(playerid, vehicleid, color1, color2, respawntime)
  7. {
  8.     new
  9.         Float:xPos,
  10.         Float:yPos,
  11.         Float:zPos,
  12.         Float:aPos,
  13.         iVeh = GetPlayerVehicleID(playerid);
  14.  
  15.     GetVehiclePos(iVeh, xPos, yPos, zPos);
  16.     GetVehicleZAngle(iVeh, aPos);
  17.  
  18.     DestroyVehicle(iVeh);
  19.     return PutPlayerInVehicle(playerid, CreateVehicle(vehicleid, xPos, yPos, zPos, aPos, color1, color2, respawntime), 0), true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement