Advertisement
mrdrifter

Untitled

Mar 18th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function cmd_VehicleSpawn(thePlayer, command, commandText)
  2.  
  3. if (commandText == nil) then
  4. outputChatBox ( " Użyj #DD0000/v [id pojazdu]#FF0000.", thePlayer, 255, 0, 0, true )
  5. return
  6. end
  7.  
  8. if tonumber(commandText)<400 or tonumber(commandText)>611 then
  9. outputChatBox ( " Podałeś nieprawidłowe id pojazdu. #DD0000400-611#FF0000.", thePlayer, 255, 0, 0, true )
  10. return
  11. end
  12. local x,y,z = getElementPosition(thePlayer) -- pobierz pozycję gracza
  13. x = x + 5
  14.  
  15. local theVehicle = createVehicle(tonumber(commandText),x,y,z)
  16. local vehicleName = getVehicleName ( theVehicle )
  17.  
  18.  
  19.  
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement