Advertisement
ProToTN

MTA addPed Script

Jan 23rd, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. function addPed (Player, thePed, number)
  2.   if (Player) then
  3.      local x, y, z = getElementPosition (Player)
  4.      local t = number
  5.      for i=1,t do
  6.      createPed (120,x+2,y,z)
  7.      x=x+0.5
  8.      end
  9.      outputChatBox("Successfully created "..tostring(t).." peds")
  10.   end
  11. end
  12.  
  13. function beheadMe (Player)
  14.   if (Player) then
  15.     setPedHeadless(Player,true)
  16.   end
  17. end
  18.  
  19. function headMe (Player)
  20.   if (Player) then
  21.     setPedHeadless(Player,false)
  22.   end
  23. end
  24.  
  25. addCommandHandler ( "addped", addPed )
  26. addCommandHandler ( "nohead", beheadMe )
  27. addCommandHandler ( "head", headMe )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement