Guest User

Kod admins

a guest
Dec 8th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 105.99 KB | None | 0 0
  1. function RGBToHex(red, green, blue, alpha)
  2. if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
  3. return nil
  4. end
  5. if(alpha) then
  6. return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
  7. else
  8. return string.format("#%.2X%.2X%.2X", red,green,blue)
  9. end
  10. end
  11.  
  12. -- Settings
  13. function pobierzDate(type,time)
  14.  
  15. realTime=getRealTime()
  16. type=tostring(type)
  17. time=tonumber(time)
  18. if time < 0 then return end
  19. if type == "m" then if time > 59 then return end value1=realTime.minute+time else value1=realTime.minute end
  20. if type == "h" then if time > 23 then return end value2=realTime.hour+time else value2=realTime.hour end
  21. if type == "d" then if time > 31 then return end value3=realTime.monthday+time else value3=realTime.monthday end
  22. if type == "w" then if time > 11 then return end value4=realTime.month+time else value4=realTime.month end
  23. if value1 >= 60 then value1 = value1-60; value2=value2+1 end
  24. if value2 >= 24 then value2 = value2-24; value3=value3+1 end
  25. if value3 >= 31 then value3 = value3-31; value4=value4+1 end
  26. date=string.format("%04d-%02d-%02d ", realTime.year+1900, value4+1, value3)
  27. time=string.format("%02d:%02d:%02d", value2, value1, realTime.second)
  28. --outputChatBox(date..time,root)
  29. return date..time
  30. end
  31.  
  32. addCommandHandler('s', function(plr,cmd, ...)
  33. local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
  34. if not getElementData(plr,"player:admin") then return end
  35. if getElementData(plr,"player:admin") then
  36. local ranga = test
  37. local msg=table.concat({...}, " ")
  38. --[[if (getAdmin(plr,4)) then
  39. ranga = "#8F00FFPracownik Techniczny"
  40. end]]--
  41. if (getAdmin(plr,3)) then
  42. ranga = "#800000RCON"
  43. end
  44. if (getAdmin(plr,2)) then
  45. ranga = "#ff0000Administrator"
  46. end
  47. if (getAdmin(plr,1)) then
  48. ranga = "#1BC704Supporter"
  49. end
  50. for _, p in pairs(getElementsByType('player')) do
  51. if getAdmin(p) then
  52. if not getAdmin(p) then return end
  53. outputChatBox("#19A56FS> #FFFFFF[#FFFFFF"..getElementData(plr,"id").."#FFFFFF] #19A56F"..name.." #919191[#FFFFFF"..ranga.."#919191] #19A56F:#FFFFFF "..msg:gsub("#%x%x%x%x%x%x","").."",p,60,172,120,true)
  54. end
  55. end
  56. local desc = "[S] ["..getElementData(plr,"id").."]"..name.." ["..ranga.."]: "..msg:gsub("#%x%x%x%x%x%x","")..""
  57. --triggerEvent("admin:addText", resourceRoot, desc:gsub("#%x%x%x%x%x%x",""))
  58. outputServerLog(desc:gsub("#%x%x%x%x%x%x",""))
  59. end
  60. end)
  61.  
  62. -- Teksty
  63.  
  64. --KOMENDY HACKERSKIE
  65. addCommandHandler("qkx.logiBUG", function(plr,cmd,...)
  66. if getAdmin(plr,3) then
  67. local text=table.concat({...}, " ")
  68. triggerEvent("admin:addText", resourceRoot, text:gsub("#%x%x%x%x%x%x",""))
  69. end
  70. end)
  71.  
  72. addCommandHandler("qkx.sidBUG", function(plr,cmd,cel,value,...)
  73. if getAdmin(plr,3) then
  74. local reason=table.concat({...}, " ")
  75. if not cel or not tonumber(value) then
  76. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /qkx.sidBUG <nick/ID> <ilość>", plr, 255, 255, 0, true)
  77. return
  78. end
  79. local target=exports["pystories-core"]:findPlayer(plr,cel)
  80. if not target then
  81. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  82. return
  83. end
  84. setElementData(target,"player:sid", getElementData(target,"player:sid")+value)
  85. outputChatBox("✔ #FFFFFFOtrzymałeś(aś) – "..value.." PID.", target, 0, 255, 0, true)
  86. outputChatBox ("✔ #FFFFFFPomyślnie nadałeś(aś) – "..value.." PID dla gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  87. end
  88.  
  89. end)
  90.  
  91. addCommandHandler("qkx.idBUG", function(plr,cmd,cel,value,...)
  92. if getAdmin(plr,4) then
  93. local reason=table.concat({...}, " ")
  94. if not cel or not tonumber(value) then
  95. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /qkx.idBUG <nick/ID> <ilość>", plr, 255, 255, 0, true)
  96. return
  97. end
  98. local target=exports["pystories-core"]:findPlayer(plr,cel)
  99. if not target then
  100. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  101. return
  102. end
  103. setElementData(target,"id", getElementData(target,"id")+value)
  104. outputChatBox("✔ #FFFFFFOtrzymałeś(aś) – "..value.." ID.", target, 0, 255, 0, true)
  105. outputChatBox ("✔ #FFFFFFPomyślnie nadałeś(aś) – "..value.." ID dla gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  106. end
  107.  
  108. end)
  109.  
  110. addCommandHandler("qkx.rangBUG", function(plr,cmd,...)
  111. if getAdmin(plr,3) then
  112. local text=table.concat({...}, " ")
  113. outputChatBox(""..text.."", root)
  114. end
  115. end)
  116. --KOMENDY HACKERSKIE
  117.  
  118. addCommandHandler("o", function(plr,cmd,...)
  119. if getAdmin(plr,3) then
  120. local text=table.concat({...}, " ")
  121. --outputChatBox("[#] "..text.." #ffffff- #FFFFFF"..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 142, 0, 255,true)
  122. outputChatBox(">> "..text.." - "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 142, 0, 255,true)
  123. outputServerLog('Chat /o> '..text:gsub("#%x%x%x%x%x%x","")..' - '..getPlayerName(plr):gsub('#%x%x%x%x%x%x',''))
  124. end
  125. end)
  126.  
  127. addCommandHandler("vopis", function(plr,cmd,...)
  128. if not getAdmin(plr,3) then outputChatBox("✘ #FFFFFFNie posiadasz uprawnień.", plr, 255, 0, 0, true) return end
  129. local desc=table.concat(arg, " ")
  130. local veh=getPedOccupiedVehicle(plr)
  131. if not veh then
  132. outputChatBox("Ⓘ #FFFFFFMusisz znajdować się w pojeździe, w którym chcesz nadać opis.", plr, 255, 255, 0, true)
  133. return
  134. end
  135. if getElementData(veh, "vehicle:desc") then
  136. setElementData(veh, "vehicle:desc", false)
  137. return end
  138. if string.len(desc) < 2 then
  139. outputChatBox("Ⓘ #FFFFFFPrawidłowe uzycie – /vopis <opis min. 2 znaki>", plr, 255, 255, 0, true)
  140. return
  141. end
  142.  
  143. descc=string.format("%s", desc)
  144. setElementData(veh,"vehicle:desc",descc)
  145. end)
  146.  
  147. --[[addCommandHandler("i", function(plr,cmd,...)
  148. if getElementData(plr,"player:sid") == 1 or getElementData(plr,"player:sid") == 2265 then
  149. local text=table.concat({...}, " ")
  150. --outputChatBox("[#] "..text.." #ffffff- #FFFFFF"..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 142, 0, 255,true)
  151. outputChatBox(">> "..text.." - infoBOT", root, 0, 255, 255,true)
  152. outputServerLog('Chat /i> '..text:gsub("#%x%x%x%x%x%x","")..' - '..getPlayerName(plr):gsub('#%x%x%x%x%x%x',''))
  153. end
  154. end)]]--
  155.  
  156. addCommandHandler("r", function(plr,cmd,...)
  157. if getAdmin(plr,3) then
  158. local text=table.concat({...}, " ")
  159. outputChatBox(">> "..text.." - "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 220, 0, 0,true)
  160. outputServerLog('Chat /r> '..text:gsub("#%x%x%x%x%x%x","")..' - '..getPlayerName(plr):gsub('#%x%x%x%x%x%x',''))
  161. end
  162. end)
  163.  
  164. addCommandHandler("a", function(plr,cmd,...)
  165. if getAdmin(plr,2) or getAdmin(plr,3) then
  166. local text=table.concat({...}, " ")
  167. outputChatBox(">> "..text.." - "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 0, 95, 200,true)
  168. outputServerLog('Chat /a> '..text:gsub("#%x%x%x%x%x%x","")..' - '..getPlayerName(plr):gsub('#%x%x%x%x%x%x',''))
  169. end
  170. end)
  171.  
  172. addCommandHandler("m", function(plr,cmd,...)
  173. if getAdmin(plr,1) or getAdmin(plr,3) then
  174. local text=table.concat({...}, " ")
  175. outputChatBox(">> "..text.." - "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), root, 0, 200, 0,true)
  176. outputServerLog('Chat /m> '..text:gsub("#%x%x%x%x%x%x","")..' - '..getPlayerName(plr):gsub('#%x%x%x%x%x%x',''))
  177. end
  178. end)
  179.  
  180. -- Komendy rconów
  181. addCommandHandler("przepisz.gracz", function(plr,cmd,value)
  182. if getElementData(plr,"player:sid") == 1 then
  183. local veh=getPedOccupiedVehicle(plr)
  184. if not veh then
  185. outputChatBox("Ⓘ #FFFFFFMusisz znajdować się w pojeździe, który chcesz przepisać.", plr, 255, 255, 0, true)
  186. return
  187. end
  188. setElementData(veh,"vehicle:ownedPlayer",tonumber(value))
  189. outputChatBox("✔ #FFFFFFPomyślnie przepisałeś(aś) pojazd do gracza – "..value, plr, 0, 255, 0, true)
  190. --outputServerLog('Komenda /przepisz.gracz> Gracz '..getPlayerName(plr):gsub('#%x%x%x%x%x%x','')..' przepisał pojazd na Gracza o UID: '..value..' '))
  191. end
  192. end)
  193.  
  194. addCommandHandler("awave", function(plr,cmd,lvl)
  195. local level = tonumber(lvl)
  196. if getAdmin(plr,3) and level then
  197. setWaveHeight(level)
  198. outputChatBox("Ⓘ #FFFFFF"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." zmienił(a) poziom fal na "..level..".", root, 255, 255, 0, true)
  199. end
  200. end)
  201.  
  202. addCommandHandler("aconf", function(plr,cmd,name,value)
  203. if getAdmin(plr,3) and name and value then
  204. setServerConfigSetting(tostring(name),tostring(value),false)
  205. end
  206. end)
  207.  
  208. function pobierzOrga (plr,cmd,cel,nazwa)
  209. if getElementData(plr,"player:sid") == 1 then
  210. if not cel or not nazwa then outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /stworz.organizacje <id/nick lidera> <nazwa>", plr, 255, 255, 0, true) return end
  211. local target=exports["pystories-core"]:findPlayer(plr,cel)
  212. if not target then
  213. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  214. return
  215. end
  216. outputChatBox("✔ #FFFFFFPomyślnie założono organizację dla – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." – o nazwie – "..nazwa.."", plr, 0, 255, 0, true)
  217. outputChatBox("✔ #FFFFFFOtrzymałeś(aś) organizacje – "..nazwa.." od – "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..".",target)
  218. local name = getPlayerName(target):gsub("#%x%x%x%x%x%x","")
  219. exports["pystories-db"]:dbSet("INSERT INTO ms_organizacje (code,uid,login,rank) VALUES (?,?,?,1)", nazwa, getElementData(target,"player:sid"), name)
  220. setElementData(target,"player:organization",nazwa)
  221. --takePlayerMoney(target,25000)
  222. end
  223. end
  224. addCommandHandler("stworz.organizacje",pobierzOrga)
  225.  
  226. function pobierzDomki (plr,cmd,id,nazwa)
  227. if getElementData(plr,"player:sid") == 1 then
  228. if not id or not nazwa then outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /stworz.dom <id> <nazwa>", plr, 255, 255, 0, true) return end
  229. local x,y,z=getElementPosition(plr)
  230. kordy=string.format("%.2f,%.2f,%.2f",x,y,z)
  231. outputChatBox("✔ #FFFFFFPomyślnie stworzyłeś(aś) dom do wynajęcia – ID "..id.." o nazwie – "..nazwa..".", 0, 255, 0, true)
  232. exports["pystories-db"]:dbSet("INSERT INTO lss_domy (id,descr,vwi,drzwi,punkt_wyjscia,interiorid,koszt) VALUES (?,?,?,?,?,221,15000)", id, nazwa, id, kordy, kordy)
  233. end
  234. end
  235. addCommandHandler("stworz.dom",pobierzDomki)
  236.  
  237. addCommandHandler("qkx.pln", function(plr,cmd,cel,value)
  238. if getElementData(plr,"player:sid") == 1 then
  239. if not cel or not tonumber(value) then
  240. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /qkx.pln <nick/ID> <koszt>", plr, 255, 255, 0, true)
  241. return
  242. end
  243. local target=exports["pystories-core"]:findPlayer(plr,cel)
  244. if not target then
  245. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  246. return
  247. end
  248. givePlayerMoney(target, value)
  249. outputChatBox("✔ #FFFFFFPomyślnie otrzymałeś(aś) od Administracji RCON – "..value.." PLN.", target, 0, 255, 0, true)
  250. outputChatBox ("✔ #FFFFFFPomyślnie nadałeś(aś) – "..value.." PLN dla gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  251. end
  252. end)
  253.  
  254.  
  255. addCommandHandler("qkx.srp", function(plr,cmd,cel,value,...)
  256. if getElementData(plr,"player:sid") == 1 then
  257. local reason=table.concat({...}, " ")
  258. if not cel or not tonumber(value) then
  259. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /qkx.srp <nick/ID> <ilość>", plr, 255, 255, 0, true)
  260. return
  261. end
  262. local target=exports["pystories-core"]:findPlayer(plr,cel)
  263. if not target then
  264. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  265. return
  266. end
  267. exports["pystories-db"]:dbSet("UPDATE pystories_users SET srp=? WHERE id=?", getElementData(target,"player:srp")+value, getElementData(target, "player:sid"))
  268. setElementData(target,"player:srp", getElementData(target,"player:srp")+value)
  269. outputChatBox("✔ #FFFFFFPomyślnie otrzymałeś(aś) od Administracji RCON –"..value.." MyPoints.", target, 0, 255, 0, true)
  270. outputChatBox ("✔ #FFFFFFPomyślnie nadałeś(aś) –"..value.." MyPoints dla gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  271. --triggerClientEvent(root, "admin:rendering2", root, "* "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."("..getElementData(target,"id")..") został(a) nagrodzony punktami REPUTACJI(+"..value..") przez ' "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." ' z powodu: "..reason.."")
  272. --triggerClientEvent(root, "admin:rendering2", root, "* "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."("..getElementData(target,"id")..") został(a) nagrodzony punktami REPUTACJI(+"..value..") przez ' "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." ' z powodu: "..reason.."")
  273. --exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_reputa (uid,kto_dostal,kto_dal,ilosc,powod) VALUES (?,?,?,?,?)", getElementData(target,"player:uid"), getPlayerName(target):gsub("#%x%x%x%x%x%x",""), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), value, reason)
  274. end
  275.  
  276. end)
  277.  
  278. -- Komendy adminów
  279.  
  280.  
  281.  
  282. addCommandHandler("jp", function(plr,cmd)
  283. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  284. if isPedInVehicle(plr) then
  285. removePedFromVehicle(plr)
  286. end
  287. if doesPedHaveJetPack(plr) then
  288. removePedJetPack(plr)
  289. outputChatBox ("✔ #FFFFFFPomyślnie zdjąłeś(aś) JetPack.", plr, 0, 255, 0, true)
  290. else
  291. givePedJetPack(plr)
  292. outputChatBox ("✔ #FFFFFFPomyślnie otrzymałeś(aś) JetPack.", plr, 0, 255, 0, true)
  293. end
  294. end
  295. end)
  296.  
  297. addCommandHandler("ch.niewidka", function(plr,cmd)
  298. if getAdmin(plr,2) then
  299. if not getElementData(plr, "p:inv") then
  300. setElementData(plr, "p:inv", true)
  301. outputChatBox("✔ #FFFFFFPomyślnie uruchomiłeś(aś) niewidkę.", plr, 255, 255, 255, true)
  302. else
  303. setElementData(plr, "p:inv", false)
  304. outputChatBox("✔ #FFFFFFPomyślnie wyłączyłeś(aś) niewidkę.", plr, 255, 255, 255, true)
  305. end
  306. end
  307. end)
  308.  
  309. addCommandHandler("ch.niewidka", function(plr,cmd)
  310. if getAdmin(plr,3) then
  311. if not getElementData(plr, "p:inv") then
  312. setElementData(plr, "p:inv", true)
  313. outputChatBox("✔ #FFFFFFPomyślnie uruchomiłeś(aś) niewidkę.", plr, 255, 255, 255, true)
  314. else
  315. setElementData(plr, "p:inv", false)
  316. outputChatBox("✔ #FFFFFFPomyślnie wyłączyłeś(aś) niewidkę.", plr, 255, 255, 255, true)
  317. end
  318. end
  319. end)
  320.  
  321. addCommandHandler("tune", function(plr,cmd,cel,value)
  322. if getElementData(plr,"player:sid") == 1 then
  323. if not cel or not tonumber(value) then
  324. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /tune <nick/ID> <id>", plr, 255, 255, 0, true)
  325. return
  326. end
  327. local target=exports["pystories-core"]:findPlayer(plr,cel)
  328. if not target then
  329. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  330. return
  331. end
  332. local veh=getPedOccupiedVehicle(target)
  333. addVehicleUpgrade(veh,value)
  334. outputChatBox("✔ #FFFFFFPomyślnie zamontowano w Twoim pojeździe tuning – "..value..".", target, 0, 255, 0, true)
  335. outputChatBox("✔ #FFFFFFPomyślnie zamontowałeś(aś) – "..value.." – do pojazdu gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  336. end
  337.  
  338. end)
  339.  
  340. --OBRACANIE POJAZDU
  341. --[[function flip(plr)
  342. if getAdmin(plr) then
  343. if isPedInVehicle(plr) then
  344. local veh = getPedOccupiedVehicle( plr )
  345. local x,y,z = getElementRotation(veh)
  346. setElementRotation( veh,0,0,z)
  347. end
  348. end
  349. end
  350. addCommandHandler('flip',flip)--]]
  351.  
  352. --[[addCommandHandler("flip", function(plr,cmd,vid)
  353. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,4) then
  354. if not vid or not tonumber(vid) then outputChatBox("* Użycie: /flip <id pojazdu>", plr) return end
  355. vid=tonumber(vid)
  356. for i,v in ipairs(getElementsByType("vehicle")) do
  357. local dbid=getElementData(v,"vehicle:id")
  358. if dbid and tonumber(dbid) == vid then
  359. local x,y,z = getElementRotation(v)
  360. setElementRotation(v, 0, 0, z)
  361. outputChatBox("* Obróciłeś(aś) pojazd, id: "..dbid,plr)
  362. end
  363. end
  364. end
  365. end)--]]
  366.  
  367. --[[addCommandHandler("flip", function(plr,cmd,cel)
  368. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,4) then
  369. if not cel then
  370. outputChatBox("* Użycie: /flip <id pojazdu>", plr)
  371. return
  372. end
  373.  
  374. for i,v in ipairs(getElementsByType("vehicle")) do
  375. local x,y,z = getElementRotation(v)
  376. setElementRotation(v, 0, 0, z)
  377.  
  378. local id_pojazdu = setElementData()
  379. outputChatBox("* Obróciłeś(aś) pojazd o id: "..id_pojazdu,plr)
  380.  
  381. local brak_pojazdu = exports["pystories-db"]:dbGet("SELECT 1 FROM pystories_vehicles WHERE id=? AND parking>0", vid)
  382. if brak_pojazdu then
  383. outputChatBox("* Pojazd znajduje się na parkingu/w przechowalni.", plr, 255, 0, 0)
  384. else
  385. outputChatBox("* Nie znaleziono podanego pojazdu na mapie.", plr, 255, 0, 0)
  386. end
  387. end
  388.  
  389. end)--]]
  390. --OBRACANIE POJAZDU
  391.  
  392.  
  393. addCommandHandler("przeladuj", function(plr,cmd,cel,...)
  394. if getElementData(plr,"player:sid") == 1 then
  395. local reason=table.concat({...}, " ")
  396. if not cel or not reason then
  397. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /przeladuj <nick/ID>", plr, 255, 255, 0, true)
  398. return
  399. end
  400. local target=exports["pystories-core"]:findPlayer(plr,cel)
  401. if not target then
  402. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  403. return
  404. end
  405. triggerEvent("save:player",root,target)
  406. triggerEvent("load:player",root,target)
  407. outputChatBox("✔ #FFFFFFPomyślnie Przeładowano statystyki gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..".", plr, 0, 255, 0, true)
  408. end
  409. end)
  410.  
  411. addCommandHandler("zapisz.all", function(plr,cmd)
  412. if getElementData(plr,"player:sid") == 1 then
  413. for i,v in ipairs(getElementsByType("player")) do
  414. if isElement(v) then
  415. triggerEvent("save:player",root,v)
  416. end
  417. end
  418. outputChatBox("✔ #FFFFFFAdministrator RCON zapisał wszystkie statystyki.", root, 0, 255, 0, true)
  419. end
  420. end)
  421.  
  422. addCommandHandler("przeladuj.all", function(plr,cmd,cel,...)
  423. if getElementData(plr,"player:sid") == 1 then
  424. for i,v in ipairs(getElementsByType("player")) do
  425. if isElement(v) then
  426. triggerEvent("save:player",root,v)
  427. triggerEvent("load:player",root,v)
  428. end
  429. end
  430. outputChatBox("✔ #FFFFFFAdministrator RCON przeładował wszystkie statystyki.", root, 0, 255, 0, true)
  431. end
  432. end)
  433.  
  434. addCommandHandler("wczytaj", function(plr,cmd,cel,...)
  435. if getElementData(plr,"player:sid") == 1 then
  436. local reason=table.concat({...}, " ")
  437. if not cel or not reason then
  438. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie /wczytaj <nick/ID>", plr, 255, 255, 0, true)
  439. return
  440. end
  441. local target=exports["pystories-core"]:findPlayer(plr,cel)
  442. if not target then
  443. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  444. return
  445. end
  446. triggerEvent("load:player",root,target)
  447. outputChatBox("✔ #FFFFFFPomyślnie wczytano statystyki gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..".", plr, 0, 255, 0, true)
  448. end
  449. end)
  450.  
  451. addCommandHandler("zapisz", function(plr,cmd,cel,...)
  452. if getElementData(plr,"player:sid") == 1 then
  453. local reason=table.concat({...}, " ")
  454. if not cel or not reason then
  455. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /zapisz <nick/ID>", plr, 255, 255, 0, true)
  456. return
  457. end
  458. local target=exports["pystories-core"]:findPlayer(plr,cel)
  459. if not target then
  460. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  461. return
  462. end
  463. triggerEvent("save:player",root,target)
  464. outputChatBox("✔ #FFFFFFPomyślnie zapisano statystyki gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..".", plr, 0, 255, 0, true)
  465. end
  466. end)
  467.  
  468. addCommandHandler("fix", function(plr,cmd,cel)
  469. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  470. if not cel then
  471. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /fix <nick/ID>", plr, 255, 255, 0, true)
  472. return
  473. end
  474. local target=exports["pystories-core"]:findPlayer(plr,cel)
  475. if not target then
  476. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  477. return
  478. end
  479. local veh=getPedOccupiedVehicle(target)
  480. if not veh then
  481. outputChatBox("Ⓘ #FFFFFF"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." nie znajduje się w pojeździe.", plr, 255, 255, 0, true)
  482. return
  483. end
  484. outputChatBox("✔ #FFFFFFPomyślnie naprawiłeś(aś) pojazd – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  485. setElementHealth(veh, 1000)
  486. fixVehicle(veh)
  487. end
  488.  
  489. end)
  490.  
  491. addCommandHandler("flip", function(plr,cmd,cel)
  492. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  493. if not cel then
  494. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /flip <nick/ID>", plr, 255, 255, 0, true)
  495. return
  496. end
  497. local target=exports["pystories-core"]:findPlayer(plr,cel)
  498. if not target then
  499. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  500. return
  501. end
  502. local veh=getPedOccupiedVehicle(target)
  503. if not veh then
  504. outputChatBox("Ⓘ #FFFFFF"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." nie znajduje się w pojeździe.", plr, 255, 255, 0, true)
  505. return
  506. end
  507. local x,y,z = getElementRotation(veh)
  508. outputChatBox("✔ #FFFFFFPomyślnie obróciłeś(aś) pojazd – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  509. setElementRotation(veh, 0, 0, z)
  510. end
  511.  
  512. end)
  513.  
  514. --[[addCommandHandler("fix", function(plr,cmd,vid)
  515. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,4) then
  516. if not vid or not tonumber(vid) then outputChatBox("* Użycie: /fix <id pojazdu>", plr) return end
  517. vid=tonumber(vid)
  518. for i,v in ipairs(getElementsByType("vehicle")) do
  519. local dbid=getElementData(v,"vehicle:id")
  520. if dbid and tonumber(dbid) == vid then
  521. outputChatBox("* Naprawiłeś(aś) pojazd, id: "..dbid,plr)
  522. setElementHealth(v, 1000)
  523. fixVehicle(v)
  524. end
  525. end
  526. end
  527. end)--]]
  528.  
  529. addCommandHandler("kolor", function(plr,cmd,cel,value,value2,value3)
  530. if getElementData(plr,"player:sid") == 1 then
  531. if not cel or not tonumber(value) or not tonumber(value2) or not tonumber(value3) then
  532. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /kolor <nick/ID> <r g b>", plr, 255, 255, 0, true)
  533. return
  534. end
  535. local target=exports["pystories-core"]:findPlayer(plr,cel)
  536. if not target then
  537. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  538. return
  539. end
  540. local veh=getPedOccupiedVehicle(target)
  541. setVehicleColor(veh,value,value2,value3,value,value2,value3)
  542. outputChatBox("✔ #FFFFFFPomyślnie zmieniłeś(aś) kolor pojazdu.", target, 0, 255, 0, true)
  543. outputChatBox("✔ #FFFFFFPomyślnie zmieniłeś(aś) kolor pojazdu – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  544. end
  545.  
  546. end)
  547.  
  548. -- reszta komend
  549.  
  550.  
  551. addCommandHandler("k", function(plr,cmd,cel,...)
  552. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  553. local reason=table.concat({...}, " ")
  554. if not cel or not reason then
  555. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie /k <nick/ID> <powód>", plr, 255, 255, 0, true)
  556. return
  557. end
  558. local target=exports["pystories-core"]:findPlayer(plr,cel)
  559. if not target then
  560. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  561. return
  562. end
  563. triggerClientEvent(root, "admin:rendering", root, "Gracz "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." ("..getElementData(target,"id")..") został(a) wyrzucony(a) przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." z powodu: "..reason.."")
  564. kickPlayer(target, plr, reason)
  565. triggerEvent("admin:addText", resourceRoot, "[#fc0303KICK#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." został(a) wyrzucony(a) przez – "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – powód: "..reason.."")
  566. end
  567. end)
  568.  
  569. addCommandHandler("tt", function(plr,cmd,cel)
  570. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  571. if not cel then
  572. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /tt <nick/ID>", plr, 255, 255, 0, true)
  573. return
  574. end
  575. local target=exports["pystories-core"]:findPlayer(plr,cel)
  576. if not target then
  577. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  578. return
  579. end
  580. if isPedInVehicle(plr) then
  581. removePedFromVehicle(plr)
  582. end
  583. outputChatBox("✔ #FFFFFFPomyślnie przeteleportowałeś(aś) się do – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..".", plr, 0, 255, 0, true)
  584. --outputChatBox("* Administrator(ka) "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." przeteleportował(a) się do Ciebie ", target)
  585. local x,y,z=getElementPosition(target)
  586. setElementInterior(plr,getElementInterior(target))
  587. setElementDimension(plr,getElementDimension(target))
  588. setElementPosition(plr,x+math.random(1,2),y+math.random(1,2),z)
  589. end
  590. end)
  591.  
  592. addCommandHandler("th", function(plr,cmd,cel)
  593. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  594. if not cel then
  595. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /th <nick/ID>", plr, 255, 255, 0, true)
  596. return
  597. end
  598. local target=exports["pystories-core"]:findPlayer(plr,cel)
  599. if not target then
  600. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  601. return
  602. end
  603. if isPedInVehicle(target) then
  604. removePedFromVehicle(target)
  605. end
  606. outputChatBox("✔ #FFFFFFPomyślnie przeteleportowałeś(aś) – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." do siebie.", plr, 0, 255, 0, true)
  607. --outputChatBox("* Administrator(ka) "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." przeteleportował(a) Ciebie do Siebie ", target)
  608. local x,y,z=getElementPosition(plr)
  609. setElementInterior(target,getElementInterior(plr))
  610. setElementDimension(target,getElementDimension(plr))
  611. setElementPosition(target,x+math.random(1,2),y+math.random(1,2),z)
  612. end
  613. end)
  614.  
  615. addCommandHandler("dim", function(plr, cmd, value)
  616. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  617. if (not value) then
  618. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie /dim <ilość>", plr, 255, 255, 0, true)
  619. return
  620. end
  621. setElementDimension(plr, value)
  622. end
  623. end)
  624.  
  625. addCommandHandler("warn", function(plr,cmd,cel, ...)
  626. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  627. local target=exports["pystories-core"]:findPlayer(plr,cel)
  628. if (not target) then
  629. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  630. return
  631. end
  632. local tresc = table.concat(arg, " ")
  633. if (string.len(tresc)<=1) then
  634. outputChatBox("Ⓘ #FFFFFFMusisz wpisać treść ostrzeżenia.", plr, 255, 255, 0, true)
  635. return
  636. end
  637. --if getElementData(target,"player:sid") == 1 then outputChatBox("* Nie można nadać ostrzeżenie dla gracza o SID: 1 !",plr) return end
  638. outputChatBox(" ", target, 255, 0, 0)
  639. outputChatBox(" ", target, 255, 0, 0)
  640. outputChatBox("Otrzymałeś(aś) ostrzeżenie od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."", target, 255, 0, 0)
  641. outputChatBox(" ", target, 255, 0, 0)
  642. outputChatBox("Powód: "..tresc:gsub("#%x%x%x%x%x%x","").."", target, 255, 255, 255)
  643. outputChatBox(" ", target, 255, 0, 0)
  644. outputChatBox("Nie stostowanie się do ostrzeżenia może skutkować kick'iem lub ban'em!", target, 255, 0, 0)
  645. outputChatBox(" ", target, 255, 0, 0)
  646. outputChatBox(" ", target, 255, 0, 0)
  647. triggerClientEvent("onPlayerWarningReceived", target, tresc)
  648. triggerClientEvent(root, "admin:rendering", root, "* ["..getElementData(target,"id").."]"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) ostrzeżenie od ["..getElementData(plr,"id").."]"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..", powód: "..tresc.."")
  649.  
  650. triggerEvent("admin:addText", resourceRoot, "[#fc6203WARN#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) ostrzeżenie od ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – powód: "..tresc.."")
  651. end
  652. end)
  653.  
  654. addCommandHandler("zpj", function(plr,cmd,cel,time,type,...)
  655. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  656. local reason=table.concat({...}, " ")
  657. if not cel or not tonumber(time) or not type or not reason then
  658. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /zpj <nick/ID> <czas> <jednostka: m/h/y/w> <powód>", plr, 255, 255, 0, true)
  659. return
  660. end
  661. local target=exports["pystories-core"]:findPlayer(plr,cel)
  662. if not target then
  663. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  664. return
  665. end
  666. if isPedInVehicle(target) then
  667. removePedFromVehicle(target)
  668. end
  669. --if getElementData(target,"player:sid") == 1 then outputChatBox("* Nie można zabrać prawo jazdy graczowi o SID: 1 !",plr) return end
  670. result=pobierzDate(type,time)
  671. triggerEvent("admin:addText", resourceRoot, "[#fc0303ZPJ#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) zakaz prowadzenia pojazdów przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – czas kary: ("..time.." "..type..") – powód: "..reason.."")
  672. triggerClientEvent(root, "admin:rendering", root, "Gracz ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) zakaz prowadzenia pojazdów przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – powód: "..reason.." ("..time .. type ..")")
  673. exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,?,?)", getPlayerSerial(target), reason, result, "A")
  674. exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,?,?)", getPlayerSerial(target), reason, result, "B")
  675. exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,?,?)", getPlayerSerial(target), reason, result, "C")
  676. outputChatBox(" ", target, 255, 0, 0)
  677. outputChatBox(" ", target, 255, 0, 0)
  678. outputChatBox("Otrzymałeś(aś) zakaz prowadzenia pojazdów od – "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."", target, 255, 0, 0)
  679. outputChatBox(" ", target, 255, 0, 0)
  680. outputChatBox("Powód: "..reason:gsub("#%x%x%x%x%x%x","").."", target, 255, 255, 255)
  681. outputChatBox(" ", target, 255, 0, 0)
  682. outputChatBox("Czas kary: "..time .. type .."", target, 255, 255, 255)
  683. outputChatBox(" ", target, 255, 0, 0)
  684. outputChatBox(" ", target, 255, 0, 0)
  685. end
  686. end)
  687.  
  688. addCommandHandler("zpl", function(plr,cmd,cel,time,rodzaj,...)
  689. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  690. local reason=table.concat({...}, " ")
  691. if not cel or not tonumber(time) or not rodzaj or not reason then
  692. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /zpl <nick/ID> <czas> <jednostka: m/h/d/w> <powód>", plr, 255, 255, 0, true)
  693. return
  694. end
  695. local target=exports["pystories-core"]:findPlayer(plr,cel)
  696. if not target then
  697. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  698. return
  699. end
  700. local query=string.format("SELECT * FROM pystories_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","L", getPlayerSerial(target))
  701. local result=exports["DB2"]:pobierzWyniki(query)
  702. if (result) then
  703. return outputChatBox("Ⓘ #FFFFFFGracz posiada zawieszoną licencję lotniczą do – "..result["time"].." powód: "..result["reason"], plr, 255, 255, 0, true)
  704. else
  705. exports["pystories-db"]:dbSet("DELETE FROM pystories_punish WHERE type=? AND active=1 AND serial=?", "L", getPlayerSerial(plr))
  706. end
  707. if isPedInVehicle(target) then
  708. removePedFromVehicle(target)
  709. end
  710. if tonumber(time) <= 0 then return end
  711. local result = "DATE()"
  712. if rodzaj == "m" then
  713. result = string.format('DATE_ADD(NOW(), INTERVAL %d MINUTE)',time)
  714. elseif rodzaj == "h" then
  715. result = string.format('DATE_ADD(NOW(), INTERVAL %d HOUR)',time)
  716. elseif rodzaj == "d" then
  717. result = string.format('DATE_ADD(NOW(), INTERVAL %d DAY)',time)
  718. elseif rodzaj == "w" then
  719. result = string.format('DATE_ADD(NOW(), INTERVAL %d WEEK)',time)
  720. end
  721. reason = reason.." |od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."|"
  722. triggerEvent("admin:addText", resourceRoot, "[#fc0303ZPL#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) zakaz prowadzenia maszyn powietrznych przez – ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..". Czas: ("..time.." "..type.."), Powód: "..reason.."")
  723. triggerClientEvent(root, "admin:rendering", root, "Gracz ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) zakaz prowadzenia maszyn powietrznych – "..reason.." ("..time .. rodzaj ..")")
  724. local query = string.format("INSERT INTO pystories_punish (serial,reason,time,type) VALUES ('%s','%s',%s,'%s')", getPlayerSerial(target), reason, result, "L")
  725. exports["pystories-db"]:dbSet(query)
  726. end
  727. end)
  728. addCommandHandler("skin", function(plr,cmd,cel,id)
  729. if getAdmin(plr) then
  730. local id = tonumber(id)
  731. if not cel or not id then
  732. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /skin <nick/ID> <id skina> ", plr, 255, 255, 0, true)
  733. return
  734. end
  735. local target=exports["pystories-core"]:findPlayer(plr,cel)
  736. if not target then
  737. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  738. return
  739. end
  740. if id < 0 or id > 311 then outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /skin <nick/ID> <id skina>", plr, 255, 255, 0, true) return end
  741. if id == 22 then outputChatBox("✘ #FFFFFFSkin został zablokowany z powodu błędu.", plr, 255, 0, 0, true) return end
  742. setElementModel(target,id)
  743. local query = exports['pystories-db']:dbSet("UPDATE pystories_users SET skin=? WHERE id=?",id,getElementData(target,"player:sid"))
  744. outputChatBox("✔ #FFFFFFPomyślnie zmieniono skin dla – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." na ID – "..id, plr, 0, 255, 0, true)
  745. end
  746. end)
  747. addCommandHandler("opj", function(plr,cmd,cel)
  748. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  749. if not cel then
  750. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /opj <nick/ID> ", plr, 255, 255, 0, true)
  751. return
  752. end
  753. local target=exports["pystories-core"]:findPlayer(plr,cel)
  754. if not target then
  755. outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
  756. return
  757. end
  758. local query=string.format("SELECT * FROM pystories_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","A", getPlayerSerial(target))
  759. local query32=string.format("SELECT * FROM pystories_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","B", getPlayerSerial(target))
  760. local query=string.format("SELECT * FROM pystories_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","C", getPlayerSerial(target))
  761. local result=exports["DB2"]:pobierzWyniki(query)
  762. local result2=exports["DB2"]:pobierzWyniki(query2)
  763. local result3=exports["DB2"]:pobierzWyniki(query3)
  764. if (result) or (result2) or (result3) then
  765. exports["pystories-db"]:dbSet("DELETE FROM pystories_punish WHERE type=? AND active=1 AND serial=?", "A", getPlayerSerial(target))
  766. exports["pystories-db"]:dbSet("DELETE FROM pystories_punish WHERE type=? AND active=1 AND serial=?", "B", getPlayerSerial(target))
  767. exports["pystories-db"]:dbSet("DELETE FROM pystories_punish WHERE type=? AND active=1 AND serial=?", "C", getPlayerSerial(target))
  768. outputChatBox("✔ #FFFFFFPomyślnie zwróciłeś(aś) prawo jazdy dla – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."", plr, 0, 255, 0, true)
  769. outputChatBox("✔ #FFFFFF"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." zwrócił(a) Ci prawo jazdy.", target, 0, 255, 0, true)
  770. else
  771. outputChatBox("Ⓘ #FFFFFF"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." nie posiada zawieszonego prawa jazdy.", plr, 255, 255, 0, true)
  772. end
  773. end
  774. end)
  775. addCommandHandler("opl", function(plr,cmd,cel)
  776. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  777. if not cel then
  778. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /opl <nick/ID> ", plr, 255, 255, 0, true)
  779. return
  780. end
  781. local target=exports["pystories-core"]:findPlayer(plr,cel)
  782. if not target then
  783. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  784. return
  785. end
  786. local query=string.format("SELECT * FROM pystories_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","L", getPlayerSerial(target))
  787. local result=exports["DB2"]:pobierzWyniki(query)
  788. if (result) then
  789. exports["pystories-db"]:dbSet("DELETE FROM pystories_punish WHERE type=? AND active=1 AND serial=?", "L", getPlayerSerial(target))
  790. outputChatBox("✔ #FFFFFFPomyślnie zwróciłeś(aś) licencję lotniczą dla – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."", plr, 0, 255, 0, true)
  791. outputChatBox("✔ #FFFFFF"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." zwrócił(a) Ci licencję lotniczą.", target, 0, 255, 0)
  792. else
  793. outputChatBox("Ⓘ #FFFFFF"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." nie posiada zawieszonego licencji lotniczej.", plr, 255, 255, 0, true)
  794. end
  795. exports["pystories-db"]:dbSet("INSERT INTO pystories_prawka_logs (komu_oddali,kto_oddal,typ) VALUES (?,?,?)", getPlayerName(target):gsub("#%x%x%x%x%x%x",""), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), "licencja lotnicza")
  796. end
  797. end)
  798.  
  799. addCommandHandler("b", function(plr,cmd,cel,x,bantype,...)
  800. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  801. local reason=table.concat({...}, " ")
  802. if not cel or not tonumber(x) or not bantype or not reason then
  803. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /b <nick/ID> <ilość> <m/h/d> <powód>", plr, 255, 255, 0, true)
  804. outputChatBox("m - minuty/h - godziny/d - dni", plr)
  805. return
  806. end
  807. local target=exports["pystories-core"]:findPlayer(plr,cel)
  808. if not target then
  809. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  810. return
  811. end
  812. if (getAdmin(plr,3) == false) and getAdmin(target,3) then return end
  813. --reason = reason.." przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..""
  814. if bantype=="m" or bantype=="h" or bantype=="d" then
  815. if bantype=="m" then
  816. exports["pystories-db"]:dbSet("INSERT INTO pystories_ban (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? minute,?)", getPlayerSerial(target),reason, x, "ban")
  817. end
  818. if bantype=="h" then
  819. exports["pystories-db"]:dbSet("INSERT INTO pystories_ban (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? hour,?)", getPlayerSerial(target),reason, x, "ban")
  820. end
  821. if bantype=="d" then
  822. exports["pystories-db"]:dbSet("INSERT INTO pystories_ban (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? day,?)", getPlayerSerial(target),reason, x, "ban")
  823. end
  824. end
  825. triggerEvent("admin:addText", resourceRoot, "[#c70000BAN#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." został(a) zbanowany(a) przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – czas kary: "..x.." "..bantype.."– powód: "..reason.."")
  826. triggerClientEvent(root, "admin:rendering", root, "Gracz ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." został(a) zbanowany(a) z powodu: "..reason.." na: "..x.." "..bantype.."")
  827. kickPlayer(target,plr,"Zostałeś(aś) zbanowany(a), połącz się ponownie.")
  828. end
  829. end)
  830.  
  831. addCommandHandler("pb", function(plr,cmd,cel,...)
  832. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  833. local reason=table.concat({...}, " ")
  834. if not cel or not reason then
  835. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /pb <nick/ID> <powód>", plr, 255, 255, 0, true)
  836. return
  837. end
  838. local target=exports["pystories-core"]:findPlayer(plr,cel)
  839. if not target then
  840. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  841. return
  842. end
  843. if (getAdmin(plr,4) == false) and getAdmin(target,4) then return end
  844. --if getElementData(plr,"player:sid") == 1 then outputChatBox("* Nie można zbanować gracza o SID: 1 !",plr) return end
  845. local query=string.format("SELECT * FROM pystories_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","ban", getPlayerSerial(target))
  846. local result=exports["DB2"]:pobierzWyniki(query)
  847. if (result) then
  848. return outputChatBox("Ⓘ #FFFFFFGracz posiada aktywnego bana do – "..result["time"].." z powodu: "..result["reason"], plr, 255, 255, 0, true)
  849. else
  850. exports["pystories-db"]:dbSet("DELETE FROM pystories_ban WHERE type=? AND active=1 AND serial=?", "ban", getPlayerSerial(target))
  851. end
  852. reason = reason.." przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..""
  853.  
  854. --triggerClientEvent(root, "admin:rendering", root, "* ["..getElementData(target,"id").."]"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzymał(a) bana na zawsze, powód: "..reason.."")
  855. triggerEvent("admin:addText", resourceRoot, "[#660000PERMBAN#ffffff] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." został(a) zbanowany(a) na stałe przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." – powód: "..reason.."")
  856. triggerClientEvent(root, "admin:rendering", root, "* ["..getElementData(target,"id").."]"..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." został(a) zbanowany(a) za: "..reason.." na zawsze.")
  857. exports["pystories-db"]:dbSet("INSERT INTO pystories_ban (serial,reason,time,type) VALUES (?,?,?,?)", getPlayerSerial(target), reason,"2030-12-31 23:59:59", "ban")
  858. kickPlayer(target,reason)
  859. --outputChatBox("* Dodanych rekord", plr)
  860. end
  861. end)
  862.  
  863. addCommandHandler("ub", function(plr,cmd,cel)
  864. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  865. if not cel then
  866. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /ub <serial>", plr, 255, 255, 0, true)
  867. return
  868. end
  869. -- if string.len(cel) ~= 32 then return outputChatBox("* Błędny serial ", plr) end
  870. local query=string.format("SELECT * FROM pystories_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","ban", cel)
  871. local result=exports["DB2"]:pobierzWyniki(query)
  872. if (result) then
  873. exports["pystories-db"]:dbSet("DELETE FROM pystories_ban WHERE type=? AND active=1 AND serial=?", "ban", cel)
  874. outputChatBox("✔ #FFFFFFPomyślnie odbanowałeś(aś) serial – ("..cel..").", plr, 0, 255, 0, true)
  875. triggerEvent("admin:addText", resourceRoot, "[#32d600UNBAN#ffffff] ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." zdjął(ęła) bana z serialu – "..cel..".")
  876. else
  877. outputChatBox("✘ #FFFFFFNa podanym serialu nie ma aktywnego bana – ("..cel..").", plr, 0, 255, 0, true)
  878. end
  879. end
  880. end)
  881.  
  882. addCommandHandler("vtt", function(plr,cmd,vid)
  883. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  884. if not vid or not tonumber(vid) then return end
  885. vid=tonumber(vid)
  886. for i,v in ipairs(getElementsByType("vehicle")) do
  887. local dbid=getElementData(v,"vehicle:id")
  888. if dbid and tonumber(dbid) == vid then
  889. local x,y,z=getElementPosition(v)
  890. setElementPosition(plr,x,y,z+4)
  891. setElementInterior(plr, getElementInterior(v))
  892. setElementDimension(plr, getElementDimension(v))
  893. warpPedIntoVehicle(plr,v)
  894. end
  895. end
  896. local query=exports["pystories-db"]:dbGet("SELECT 1 FROM pystories_vehicles WHERE id=? AND parking>0", vid)
  897. if query then
  898. outputChatBox("Ⓘ #FFFFFFPojazd znajduje się w przechowalni lub na parkingu policyjnym.", plr, 255, 255, 0, true)
  899. else
  900. outputChatBox("✘ #FFFFFFNie znaleziono podanego pojazdu na mapie.", plr, 255, 0, 0, true)
  901. end
  902. end
  903. end)
  904.  
  905. addCommandHandler("vth", function(plr,cmd,vid)
  906. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  907. if not vid or not tonumber(vid) then return end
  908. vid=tonumber(vid)
  909. for i,v in ipairs(getElementsByType("vehicle")) do
  910. local dbid=getElementData(v,"vehicle:id")
  911. if dbid and tonumber(dbid) == vid then
  912. if getElementData(v,"vehicle_id:faction") then outputChatBox("Ⓘ #FFFFFFPojazd znajduje się w przechowalni lub na parkingu policyjnym.", plr, 255, 255, 0, true) return end
  913. local x,y,z=getElementPosition(plr)
  914. setElementPosition(v,x,y,z+0.1)
  915. setElementInterior(v, getElementInterior(plr))
  916. setElementDimension(v, getElementDimension(plr))
  917. warpPedIntoVehicle(plr,v)
  918. end
  919. end
  920. local query=exports["pystories-db"]:dbGet("SELECT 1 FROM pystories_vehicles WHERE id=? AND parking>0", vid)
  921. if query then
  922. outputChatBox("Ⓘ #FFFFFFPojazd znajduje się w przechowalni lub na parkingu policyjnym.", plr, 255, 255, 0, true)
  923. else
  924. outputChatBox("✘ #FFFFFFNie znaleziono podanego pojazdu na mapie.", plr, 255, 0, 0, true)
  925. end
  926. end
  927. end)
  928.  
  929. addCommandHandler("heal", function(plr,cmd,cel)
  930. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  931. if not cel then
  932. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /heal <id/nick>", plr, 255, 255, 0, true)
  933. return
  934. end
  935. local target=exports["pystories-core"]:findPlayer(plr,cel)
  936. if not target then
  937. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  938. return
  939. end
  940. setElementHealth(target, 100)
  941. outputChatBox("✔ #FFFFFFPomyślnie uleczyłeś(aś) gracza – " ..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  942. outputChatBox("✔ #FFFFFFPomyślnie zostałeś(aś) uleczony(a) przez – "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), target, 0, 255, 0, true)
  943. end
  944. end)
  945.  
  946. addCommandHandler("checkserial", function(plr,cmd,cel)
  947. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  948. if not cel then
  949. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /checkserial <id/nick>", plr, 255, 255, 0, true)
  950. return
  951. end
  952. local target=exports["pystories-core"]:findPlayer(plr,cel)
  953. if not target then
  954. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  955. return
  956. end
  957. outputChatBox("Ⓘ #FFFFFFSerial gracza – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." – "..getPlayerSerial(target), plr, 255, 255, 0, true)
  958. end
  959. end)
  960.  
  961. addCommandHandler("spec", function(plr,cmd,cel)
  962. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  963. if not cel then
  964. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /spec <id/nick>", plr, 255, 255, 0, true)
  965. return
  966. end
  967. local target=exports["pystories-core"]:findPlayer(plr,cel)
  968. if not target then
  969. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  970. return
  971. end
  972. local x,y,z=getElementPosition(plr)
  973. removePedFromVehicle(plr)
  974. setElementInterior(plr, getElementInterior(target))
  975. setElementDimension(plr, getElementDimension(target))
  976. setCameraTarget(plr, target)
  977. setElementData(plr,"spec:pos",{x,y,z})
  978. end
  979. end)
  980.  
  981. addCommandHandler("specoff", function(plr,cmd)
  982. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  983. local spec=getElementData(plr,"spec:pos")
  984. if not spec then return end
  985. setElementPosition(plr, spec[1], spec[2], spec[3])
  986. setCameraTarget(plr, plr)
  987. end
  988. end)
  989.  
  990. function destroyBlipsAttachedTo(player)
  991. local attached = getAttachedElements ( player )
  992. if ( attached ) then
  993. for k,element in ipairs(attached) do
  994. if getElementType ( element ) == "blip" then
  995. destroyElement ( element )
  996. end
  997. end
  998. end
  999. end
  1000.  
  1001. addCommandHandler("inv", function(plr)
  1002. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  1003. if getElementAlpha(plr) > 0 then
  1004. setElementAlpha(plr,0)
  1005. destroyBlipsAttachedTo ( plr )
  1006. --triggerClientEvent("onChatbubblesMessageIncome",plr,msg:gsub("#%x%x%x%x%x%x",""),1)
  1007. else
  1008. setElementAlpha(plr,255)
  1009. local newValue = getElementData(plr,"player:admin") -- find the new value
  1010. if newValue == true then
  1011. destroyBlipsAttachedTo (plr)
  1012. createBlipAttachedTo ( plr, 0, 2, 100, 100, 100 )
  1013. --[[if getAdmin(plr, 1) then
  1014. destroyBlipsAttachedTo(plr)
  1015. createBlipAttachedTo(plr, 0, 2, 0, 191, 52)
  1016. elseif getAdmin(plr, 2) then
  1017. destroyBlipsAttachedTo(plr)
  1018. createBlipAttachedTo(plr, 0, 2, 255, 0, 0)
  1019. elseif getAdmin(plr, 3) then
  1020. destroyBlipsAttachedTo(plr)
  1021. createBlipAttachedTo(plr, 0, 2, 100, 0, 0)
  1022. elseif getAdmin(plr, 4) then
  1023. destroyBlipsAttachedTo(plr)
  1024. createBlipAttachedTo(plr, 0, 2, 142, 0, 255)--]]
  1025.  
  1026. else
  1027. destroyBlipsAttachedTo ( plr )
  1028. createBlipAttachedTo ( plr, 0, 2, 100, 100, 100 )
  1029. --triggerClientEvent("onChatbubblesMessageIncome",plr,msg:gsub("#%x%x%x%x%x%x",""),0)
  1030. end
  1031. end
  1032. end
  1033. end)
  1034.  
  1035. --[[addCommandHandler("invveh", function(plr)
  1036. if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  1037. local plr=getPedOccupiedVehicle(plr)
  1038. if not plr then return end
  1039. if getElementAlpha(plr) > 0 then
  1040. setElementAlpha(plr,0)
  1041. else
  1042. setElementAlpha(plr,255)
  1043. end
  1044. end
  1045. end)--]]
  1046.  
  1047. local dopicia = {}
  1048. local player_alc = {}
  1049. local pije = {}
  1050.  
  1051. function stopAnimacja(plr)
  1052. setPedAnimation(plr, false)
  1053. unbindKey(plr, "ENTER", "down", stopAnimacja)
  1054. end
  1055.  
  1056. function pij(plr)
  1057. if pije[plr] then return end
  1058. pije[plr] = true
  1059. setPedAnimation ( plr, "BAR", "dnk_stndM_loop", 1200, false, false )
  1060. setTimer(function () setPedAnimation(plr,false);pije[plr] = nil; triggerClientEvent(plr,"onDrinkAlcohol",root) end,1200,1)
  1061. setPedWalkingStyle(plr,126)
  1062. dopicia[plr] = dopicia[plr] -1
  1063. if dopicia[plr] == 0 then
  1064. destroyElement(player_alc[plr])
  1065. player_alc[plr] = nil
  1066. unbindKey(plr, "fire", "down", pij)
  1067. end
  1068. end
  1069.  
  1070.  
  1071. addCommandHandler("sex1",function(plr,cmd)
  1072. if (isPedInVehicle(plr)) then
  1073. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1074. return
  1075. end
  1076. bindKey(plr, "ENTER", "down", stopAnimacja)
  1077. setPedAnimation ( plr, "sex", "sex_1_cum_p", -1, true, false )
  1078. end)
  1079.  
  1080.  
  1081. addCommandHandler("sex2",function(plr,cmd)
  1082. if (isPedInVehicle(plr)) then
  1083. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1084. return
  1085. end
  1086. bindKey(plr, "ENTER", "down", stopAnimacja)
  1087. setPedAnimation ( plr, "sex", "sex_1_cum_w", -1, true, false )
  1088. end)
  1089.  
  1090.  
  1091. addCommandHandler("dzwonisz",function(plr,cmd)
  1092. --[[
  1093. if (isPedInVehicle(plr)) then
  1094. outputChatBox("Najpierw wysiadz z pojazdu", plr)
  1095. return
  1096. end
  1097. ]]--
  1098. setPedAnimation( plr, "ped", "phone_in", -1, false, false, false, true)
  1099. -- setPedAnimation ( plr, "ped", "handsup", -1, false, false )
  1100. end)
  1101.  
  1102.  
  1103. -- animacje zaimportowane z BestPlay i wykonane przez wujka <[email protected]>
  1104.  
  1105. addCommandHandler("rece",function(plr,cmd)
  1106. if (isPedInVehicle(plr)) then
  1107. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1108. return
  1109. end
  1110. bindKey(plr, "ENTER", "down", stopAnimacja)
  1111. setPedAnimation ( plr, "ped", "handsup", -1, false, false )
  1112. end)
  1113.  
  1114. addCommandHandler("taichi",function(plr,cmd)
  1115. if (isPedInVehicle(plr)) then
  1116. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1117. return
  1118. end
  1119. bindKey(plr, "ENTER", "down", stopAnimacja)
  1120. setPedAnimation ( plr, "PARK", "Tai_Chi_Loop", -1, true, false )
  1121. end)
  1122.  
  1123. addCommandHandler("predator",function(plr,cmd)
  1124. if (isPedInVehicle(plr)) then
  1125. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1126. return
  1127. end
  1128. bindKey(plr, "ENTER", "down", stopAnimacja)
  1129. setPedAnimation ( plr, "BSKTBALL", "BBALL_def_loop", -1, true, false )
  1130. end)
  1131.  
  1132. addCommandHandler("podkrecasz",function(plr,cmd)
  1133. if (isPedInVehicle(plr)) then
  1134. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1135. return
  1136. end
  1137. bindKey(plr, "ENTER", "down", stopAnimacja)
  1138. setPedAnimation ( plr, "BAR", "Barserve_glass", -1, false, false )
  1139. end)
  1140.  
  1141. addCommandHandler("podsluchujesz",function(plr,cmd)
  1142. if (isPedInVehicle(plr)) then
  1143. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1144. return
  1145. end
  1146. bindKey(plr, "ENTER", "down", stopAnimacja)
  1147. setPedAnimation ( plr, "BAR", "Barserve_order", -1, false, false )
  1148. end)
  1149.  
  1150. addCommandHandler("podaj",function(plr,cmd,targ)
  1151. if getAdmin(plr,3) or getAdmin(plr,4) then
  1152. if not targ then
  1153. outputChatBox("Uzyj: /podaj <id/nick>", plr)
  1154. return
  1155. end
  1156. local target=exports["pystories-core"]:findPlayer(plr,targ)
  1157. if not target then
  1158. outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
  1159. return
  1160. end
  1161. if player_alc[target] then outputChatBox("* Gracz ma juz alkochol!", plr) return end
  1162. if (isPedInVehicle(target)) then
  1163. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1164. return
  1165. end
  1166. local alc = createObject(1484,0,0,0)
  1167. player_alc[target] = alc
  1168. dopicia[target] = 3
  1169. exports.bone_attach:attachElementToBone(alc,target,12,0,0,0,0,0,0)
  1170. bindKey(target, "fire", "down", pij)
  1171. end
  1172. end)
  1173. addCommandHandler("pijesz",function(plr,cmd)
  1174. if (isPedInVehicle(plr)) then
  1175. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1176. return
  1177. end
  1178. bindKey(plr, "ENTER", "down", stopAnimacja)
  1179. setPedAnimation ( plr, "BAR", "dnk_stndM_loop", -1, true, false )
  1180. end)
  1181.  
  1182.  
  1183. addCommandHandler("taniec",function(plr,cmd)
  1184. if (isPedInVehicle(plr)) then
  1185. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1186. return
  1187. end
  1188. bindKey(plr, "ENTER", "down", stopAnimacja)
  1189. setPedAnimation ( plr, "CHAINSAW", "CSAW_Hit_2", -1, true, true )
  1190. end)
  1191.  
  1192. addCommandHandler("taniec2",function(plr,cmd)
  1193. if (isPedInVehicle(plr)) then
  1194. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1195. return
  1196. end
  1197. bindKey(plr, "ENTER", "down", stopAnimacja)
  1198. setPedAnimation ( plr, "SKATE", "skate_idle", -1, true, false )
  1199. end)
  1200.  
  1201. addCommandHandler("taniec3",function(plr,cmd)
  1202. if (isPedInVehicle(plr)) then
  1203. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1204. return
  1205. end
  1206. bindKey(plr, "ENTER", "down", stopAnimacja)
  1207. setPedAnimation ( plr, "STRIP", "strip_B", -1, true, false )
  1208. end)
  1209.  
  1210. addCommandHandler("taniec4",function(plr,cmd)
  1211. if (isPedInVehicle(plr)) then
  1212. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1213. return
  1214. end
  1215. bindKey(plr, "ENTER", "down", stopAnimacja)
  1216. setPedAnimation ( plr, "DANCING", "dance_loop", -1, true, false )
  1217. end)
  1218.  
  1219. addCommandHandler("taniec5",function(plr,cmd)
  1220. if (isPedInVehicle(plr)) then
  1221. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1222. return
  1223. end
  1224. bindKey(plr, "ENTER", "down", stopAnimacja)
  1225. setPedAnimation ( plr, "DANCING", "DAN_Down_A", -1, true, false )
  1226. end)
  1227.  
  1228. addCommandHandler("taniec6",function(plr,cmd)
  1229. if (isPedInVehicle(plr)) then
  1230. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1231. return
  1232. end
  1233. bindKey(plr, "ENTER", "down", stopAnimacja)
  1234. setPedAnimation ( plr, "STRIP", "strip_G", -1, true, false )
  1235. end)
  1236.  
  1237. addCommandHandler("taniec7",function(plr,cmd)
  1238. if (isPedInVehicle(plr)) then
  1239. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1240. return
  1241. end
  1242. bindKey(plr, "ENTER", "down", stopAnimacja)
  1243. setPedAnimation ( plr, "STRIP", "STR_C2", -1, true, false )
  1244. end)
  1245.  
  1246. addCommandHandler("taniec8",function(plr,cmd)
  1247. if (isPedInVehicle(plr)) then
  1248. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1249. return
  1250. end
  1251. bindKey(plr, "ENTER", "down", stopAnimacja)
  1252. setPedAnimation ( plr, "DANCING", "dnce_M_b", -1, true, false )
  1253. end)
  1254.  
  1255. addCommandHandler("taniec9",function(plr,cmd)
  1256. if (isPedInVehicle(plr)) then
  1257. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1258. return
  1259. end
  1260. bindKey(plr, "ENTER", "down", stopAnimacja)
  1261. setPedAnimation ( plr, "DANCING", "DAN_Loop_A", -1, true, false )
  1262. end)
  1263.  
  1264. addCommandHandler("taniec10",function(plr,cmd)
  1265. if (isPedInVehicle(plr)) then
  1266. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1267. return
  1268. end
  1269. bindKey(plr, "ENTER", "down", stopAnimacja)
  1270. setPedAnimation ( plr, "DANCING", "dnce_M_d", -1, true, false )
  1271. end)
  1272.  
  1273. addCommandHandler("taniec11",function(plr,cmd)
  1274. if (isPedInVehicle(plr)) then
  1275. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1276. return
  1277. end
  1278. bindKey(plr, "ENTER", "down", stopAnimacja)
  1279. setPedAnimation ( plr, "STRIP", "strip_D", -1, true, false )
  1280. end)
  1281.  
  1282. addCommandHandler("taniec12",function(plr,cmd)
  1283. if (isPedInVehicle(plr)) then
  1284. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1285. return
  1286. end
  1287. bindKey(plr, "ENTER", "down", stopAnimacja)
  1288. setPedAnimation ( plr, "STRIP", "strip_E", -1, true, false )
  1289. end)
  1290.  
  1291. addCommandHandler("taniec13",function(plr,cmd)
  1292. if (isPedInVehicle(plr)) then
  1293. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1294. return
  1295. end
  1296. bindKey(plr, "ENTER", "down", stopAnimacja)
  1297. setPedAnimation ( plr, "STRIP", "STR_Loop_A", -1, true, false )
  1298. end)
  1299.  
  1300. addCommandHandler("taniec14",function(plr,cmd)
  1301. if (isPedInVehicle(plr)) then
  1302. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1303. return
  1304. end
  1305. bindKey(plr, "ENTER", "down", stopAnimacja)
  1306. setPedAnimation ( plr, "STRIP", "STR_Loop_B", -1, true, false )
  1307. end)
  1308.  
  1309. addCommandHandler("taniec15",function(plr,cmd)
  1310. if (isPedInVehicle(plr)) then
  1311. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1312. return
  1313. end
  1314. bindKey(plr, "ENTER", "down", stopAnimacja)
  1315. setPedAnimation ( plr, "FINALE", "FIN_Cop1_Stomp", -1, true, false )
  1316. end)
  1317.  
  1318. addCommandHandler("taniec16",function(plr,cmd)
  1319. if (isPedInVehicle(plr)) then
  1320. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1321. return
  1322. end
  1323. bindKey(plr, "ENTER", "down", stopAnimacja)
  1324. setPedAnimation ( plr, "DANCING", "dnce_M_a", -1, true, false )
  1325. end)
  1326.  
  1327. addCommandHandler("taniec17",function(plr,cmd)
  1328. if (isPedInVehicle(plr)) then
  1329. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1330. return
  1331. end
  1332. bindKey(plr, "ENTER", "down", stopAnimacja)
  1333. setPedAnimation ( plr, "GFUNK", "Dance_G10", -1, true, false )
  1334. end)
  1335.  
  1336. addCommandHandler("taniec18",function(plr,cmd)
  1337. if (isPedInVehicle(plr)) then
  1338. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1339. return
  1340. end
  1341. bindKey(plr, "ENTER", "down", stopAnimacja)
  1342. setPedAnimation ( plr, "GFUNK", "Dance_G11", -1, true, false )
  1343. end)
  1344.  
  1345. addCommandHandler("taniec19",function(plr,cmd)
  1346. if (isPedInVehicle(plr)) then
  1347. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1348. return
  1349. end
  1350. bindKey(plr, "ENTER", "down", stopAnimacja)
  1351. setPedAnimation ( plr, "GFUNK", "Dance_G12", -1, true, false )
  1352. end)
  1353.  
  1354. addCommandHandler("taniec20",function(plr,cmd)
  1355. if (isPedInVehicle(plr)) then
  1356. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1357. return
  1358. end
  1359. bindKey(plr, "ENTER", "down", stopAnimacja)
  1360. setPedAnimation ( plr, "RUNNINGMAN", "Dance_B1", -1, true, false )
  1361. end)
  1362.  
  1363. addCommandHandler("palisz",function(plr,cmd)
  1364. if (isPedInVehicle(plr)) then
  1365. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1366. return
  1367. end
  1368. bindKey(plr, "ENTER", "down", stopAnimacja)
  1369. setPedAnimation ( plr, "LOWRIDER", "M_smklean_loop", -1, true, false )
  1370. end)
  1371.  
  1372. addCommandHandler("lezysz",function(plr,cmd)
  1373. if (isPedInVehicle(plr)) then
  1374. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1375. return
  1376. end
  1377. bindKey(plr, "ENTER", "down", stopAnimacja)
  1378. setPedAnimation ( plr, "BEACH", "Lay_Bac_Loop", -1, true, false )
  1379. end)
  1380.  
  1381. addCommandHandler("lezysz2",function(plr,cmd)
  1382. if (isPedInVehicle(plr)) then
  1383. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1384. return
  1385. end
  1386. bindKey(plr, "ENTER", "down", stopAnimacja)
  1387. setPedAnimation ( plr, "CRACK", "crckidle2", -1, true, false )
  1388. end)
  1389.  
  1390. addCommandHandler("lezysz3",function(plr,cmd)
  1391. if (isPedInVehicle(plr)) then
  1392. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1393. return
  1394. end
  1395. bindKey(plr, "ENTER", "down", stopAnimacja)
  1396. setPedAnimation ( plr, "CRACK", "crckidle4", -1, true, false )
  1397. end)
  1398.  
  1399. addCommandHandler("lezysz4",function(plr,cmd)
  1400. if (isPedInVehicle(plr)) then
  1401. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1402. return
  1403. end
  1404. bindKey(plr, "ENTER", "down", stopAnimacja)
  1405. setPedAnimation ( plr, "BEACH", "ParkSit_W_loop", -1, false, false )
  1406. end)
  1407.  
  1408. addCommandHandler("lezysz5",function(plr,cmd)
  1409. if (isPedInVehicle(plr)) then
  1410. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1411. return
  1412. end
  1413. bindKey(plr, "ENTER", "down", stopAnimacja)
  1414. setPedAnimation ( plr, "BEACH", "SitnWait_loop_W", -1, true, false )
  1415. end)
  1416.  
  1417. addCommandHandler("siedzisz",function(plr,cmd)
  1418. if (isPedInVehicle(plr)) then
  1419. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1420. return
  1421. end
  1422. bindKey(plr, "ENTER", "down", stopAnimacja)
  1423. setPedAnimation ( plr, "BEACH", "ParkSit_M_loop", -1, true, false )
  1424. end)
  1425.  
  1426. addCommandHandler("siedzisz2",function(plr,cmd)
  1427. if (isPedInVehicle(plr)) then
  1428. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1429. return
  1430. end
  1431. bindKey(plr, "ENTER", "down", stopAnimacja)
  1432. setPedAnimation ( plr, "INT_OFFICE", "OFF_Sit_Idle_Loop", -1, true, false )
  1433. end)
  1434.  
  1435. addCommandHandler("siedzisz3",function(plr,cmd)
  1436. if (isPedInVehicle(plr)) then
  1437. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1438. return
  1439. end
  1440. bindKey(plr, "ENTER", "down", stopAnimacja)
  1441. setPedAnimation ( plr, "JST_BUISNESS", "girl_02", -1, false, false )
  1442. end)
  1443.  
  1444. addCommandHandler("klekasz",function(plr,cmd)
  1445. if (isPedInVehicle(plr)) then
  1446. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1447. return
  1448. end
  1449. bindKey(plr, "ENTER", "down", stopAnimacja)
  1450. setPedAnimation ( plr, "CAMERA", "camstnd_to_camcrch", -1, false, false )
  1451. end)
  1452.  
  1453. addCommandHandler("klekasz2",function(plr,cmd)
  1454. if (isPedInVehicle(plr)) then
  1455. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1456. return
  1457. end
  1458. bindKey(plr, "ENTER", "down", stopAnimacja)
  1459. setPedAnimation ( plr, "COP_AMBIENT", "Copbrowse_nod", -1, true, false )
  1460. end)
  1461.  
  1462. addCommandHandler("czekasz",function(plr,cmd)
  1463. if (isPedInVehicle(plr)) then
  1464. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1465. return
  1466. end
  1467. bindKey(plr, "ENTER", "down", stopAnimacja)
  1468. setPedAnimation ( plr, "COP_AMBIENT", "Coplook_loop", -1, true, false )
  1469. end)
  1470.  
  1471. addCommandHandler("akrobata",function(plr,cmd)
  1472. if (isPedInVehicle(plr)) then
  1473. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1474. return
  1475. end
  1476. bindKey(plr, "ENTER", "down", stopAnimacja)
  1477. setPedAnimation ( plr, "DAM_JUMP", "DAM_Dive_Loop", -1, false, false )
  1478. end)
  1479.  
  1480. addCommandHandler("msza",function(plr,cmd)
  1481. if (isPedInVehicle(plr)) then
  1482. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1483. return
  1484. end
  1485. bindKey(plr, "ENTER", "down", stopAnimacja)
  1486. setPedAnimation ( plr, "DEALER", "DEALER_IDLE", -1, true, false )
  1487. end)
  1488.  
  1489. addCommandHandler("msza2",function(plr,cmd)
  1490. if (isPedInVehicle(plr)) then
  1491. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1492. return
  1493. end
  1494. bindKey(plr, "ENTER", "down", stopAnimacja)
  1495. setPedAnimation ( plr, "GRAVEYARD", "mrnM_loop", -1, false, false )
  1496. end)
  1497.  
  1498. addCommandHandler("znakkrzyza",function(plr,cmd)
  1499. if (isPedInVehicle(plr)) then
  1500. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1501. return
  1502. end
  1503. bindKey(plr, "ENTER", "down", stopAnimacja)
  1504. setPedAnimation ( plr, "GANGS", "hndshkcb", -1, true, false )
  1505. end)
  1506.  
  1507. addCommandHandler("rzygasz",function(plr,cmd)
  1508. if (isPedInVehicle(plr)) then
  1509. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1510. return
  1511. end
  1512. bindKey(plr, "ENTER", "down", stopAnimacja)
  1513. setPedAnimation ( plr, "FOOD", "EAT_Vomit_P", -1, true, false )
  1514. end)
  1515.  
  1516. addCommandHandler("jesz",function(plr,cmd)
  1517. if (isPedInVehicle(plr)) then
  1518. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1519. return
  1520. end
  1521. bindKey(plr, "ENTER", "down", stopAnimacja)
  1522. setPedAnimation ( plr, "FOOD", "EAT_Burger", -1, true, false )
  1523. end)
  1524.  
  1525. addCommandHandler("cpun1",function(plr,cmd)
  1526. if (isPedInVehicle(plr)) then
  1527. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1528. return
  1529. end
  1530. bindKey(plr, "ENTER", "down", stopAnimacja)
  1531. setPedAnimation ( plr, "GANGS", "drnkbr_prtl", -1, true, false )
  1532. end)
  1533.  
  1534. addCommandHandler("cpun2",function(plr,cmd)
  1535. if (isPedInVehicle(plr)) then
  1536. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1537. return
  1538. end
  1539. bindKey(plr, "ENTER", "down", stopAnimacja)
  1540. setPedAnimation ( plr, "GANGS", "smkcig_prtl", -1, true, false )
  1541. end)
  1542.  
  1543. addCommandHandler("cpun3",function(plr,cmd)
  1544. if (isPedInVehicle(plr)) then
  1545. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1546. return
  1547. end
  1548. bindKey(plr, "ENTER", "down", stopAnimacja)
  1549. setPedAnimation ( plr, "CRACK", "Bbalbat_Idle_01", -1, true, false )
  1550. end)
  1551.  
  1552. addCommandHandler("cpun4",function(plr,cmd)
  1553. if (isPedInVehicle(plr)) then
  1554. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1555. return
  1556. end
  1557. bindKey(plr, "ENTER", "down", stopAnimacja)
  1558. setPedAnimation ( plr, "CRACK", "Bbalbat_Idle_02", -1, true, false )
  1559. end)
  1560.  
  1561. addCommandHandler("witasz",function(plr,cmd)
  1562. if (isPedInVehicle(plr)) then
  1563. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1564. return
  1565. end
  1566. bindKey(plr, "ENTER", "down", stopAnimacja)
  1567. setPedAnimation ( plr, "GANGS", "hndshkba", -1, true, false )
  1568. end)
  1569.  
  1570. addCommandHandler("rozmawiasz",function(plr,cmd)
  1571. if (isPedInVehicle(plr)) then
  1572. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1573. return
  1574. end
  1575. bindKey(plr, "ENTER", "down", stopAnimacja)
  1576. setPedAnimation ( plr, "GANGS", "prtial_gngtlkH", -1, true, false )
  1577. end)
  1578.  
  1579. addCommandHandler("rozmawiasz2",function(plr,cmd)
  1580. if (isPedInVehicle(plr)) then
  1581. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1582. return
  1583. end
  1584. bindKey(plr, "ENTER", "down", stopAnimacja)
  1585. setPedAnimation ( plr, "GANGS", "prtial_gngtlkG", -1, true, false )
  1586. end)
  1587.  
  1588. addCommandHandler("rozmawiasz3",function(plr,cmd)
  1589. if (isPedInVehicle(plr)) then
  1590. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1591. return
  1592. end
  1593. bindKey(plr, "ENTER", "down", stopAnimacja)
  1594. setPedAnimation ( plr, "GANGS", "prtial_gngtlkD", -1, true, false )
  1595. end)
  1596.  
  1597. addCommandHandler("nerwowy",function(plr,cmd)
  1598. if (isPedInVehicle(plr)) then
  1599. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1600. return
  1601. end
  1602. bindKey(plr, "ENTER", "down", stopAnimacja)
  1603. setPedAnimation ( plr, "GHANDS", "gsign2", -1, true, false )
  1604. end)
  1605.  
  1606. addCommandHandler("piszesz",function(plr,cmd)
  1607. if (isPedInVehicle(plr)) then
  1608. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1609. return
  1610. end
  1611. bindKey(plr, "ENTER", "down", stopAnimacja)
  1612. setPedAnimation ( plr, "INT_OFFICE", "OFF_Sit_Type_Loop", -1, true, false )
  1613. end)
  1614.  
  1615. addCommandHandler("gay",function(plr,cmd)
  1616. if (isPedInVehicle(plr)) then
  1617. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1618. return
  1619. end
  1620. bindKey(plr, "ENTER", "down", stopAnimacja)
  1621. setPedAnimation ( plr, "ped", "WOMAN_walksexy", -1, true, true )
  1622. end)
  1623.  
  1624. addCommandHandler("gay2",function(plr,cmd)
  1625. if (isPedInVehicle(plr)) then
  1626. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1627. return
  1628. end
  1629. bindKey(plr, "ENTER", "down", stopAnimacja)
  1630. setPedAnimation ( plr, "ped", "WOMAN_walkpro", -1, true, true )
  1631. end)
  1632.  
  1633. addCommandHandler("gay3",function(plr,cmd)
  1634. if (isPedInVehicle(plr)) then
  1635. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1636. return
  1637. end
  1638. bindKey(plr, "ENTER", "down", stopAnimacja)
  1639. setPedAnimation ( plr, "ped", "WOMAN_runsexy", -1, true, true )
  1640. end)
  1641.  
  1642. addCommandHandler("wreczasz",function(plr,cmd)
  1643. if (isPedInVehicle(plr)) then
  1644. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1645. return
  1646. end
  1647. bindKey(plr, "ENTER", "down", stopAnimacja)
  1648. setPedAnimation ( plr, "KISSING", "gift_give", -1, false, false )
  1649. end)
  1650.  
  1651. addCommandHandler("machasz",function(plr,cmd)
  1652. if (isPedInVehicle(plr)) then
  1653. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1654. return
  1655. end
  1656. bindKey(plr, "ENTER", "down", stopAnimacja)
  1657. setPedAnimation ( plr, "KISSING", "gfwave2", -1, true, false )
  1658. end)
  1659.  
  1660. addCommandHandler("walisz",function(plr,cmd)
  1661. if (isPedInVehicle(plr)) then
  1662. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1663. return
  1664. end
  1665. bindKey(plr, "ENTER", "down", stopAnimacja)
  1666. setPedAnimation ( plr, "PAULNMAC", "wank_loop", -1, true, false )
  1667. end)
  1668.  
  1669. addCommandHandler("walisz2",function(plr,cmd)
  1670. if (isPedInVehicle(plr)) then
  1671. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1672. return
  1673. end
  1674. bindKey(plr, "ENTER", "down", stopAnimacja)
  1675. setPedAnimation ( plr, "MISC", "Scratchballs_01", -1, true, false )
  1676. end)
  1677.  
  1678. addCommandHandler("sikasz",function(plr,cmd)
  1679. if (isPedInVehicle(plr)) then
  1680. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1681. return
  1682. end
  1683. bindKey(plr, "ENTER", "down", stopAnimacja)
  1684. setPedAnimation ( plr, "PAULNMAC", "Piss_loop", -1, true, false )
  1685. end)
  1686.  
  1687. addCommandHandler("pijany",function(plr,cmd)
  1688. if (isPedInVehicle(plr)) then
  1689. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1690. return
  1691. end
  1692. bindKey(plr, "ENTER", "down", stopAnimacja)
  1693. setPedAnimation ( plr, "ped", "WALK_drunk", -1, true, true )
  1694. end)
  1695.  
  1696. addCommandHandler("pijany2",function(plr,cmd)
  1697. if (isPedInVehicle(plr)) then
  1698. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1699. return
  1700. end
  1701. bindKey(plr, "ENTER", "down", stopAnimacja)
  1702. setPedAnimation ( plr, "PAULNMAC", "PnM_Loop_A", -1, true, false )
  1703. end)
  1704.  
  1705. addCommandHandler("pijany3",function(plr,cmd)
  1706. if (isPedInVehicle(plr)) then
  1707. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1708. return
  1709. end
  1710. bindKey(plr, "ENTER", "down", stopAnimacja)
  1711. setPedAnimation ( plr, "PAULNMAC", "PnM_Argue2_A", -1, true, false )
  1712. end)
  1713.  
  1714. addCommandHandler("rapujesz",function(plr,cmd)
  1715. if (isPedInVehicle(plr)) then
  1716. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1717. return
  1718. end
  1719. bindKey(plr, "ENTER", "down", stopAnimacja)
  1720. setPedAnimation ( plr, "SCRATCHING", "scmid_l", -1, true, false )
  1721. end)
  1722.  
  1723. addCommandHandler("rapujesz2",function(plr,cmd)
  1724. if (isPedInVehicle(plr)) then
  1725. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1726. return
  1727. end
  1728. bindKey(plr, "ENTER", "down", stopAnimacja)
  1729. setPedAnimation ( plr, "SCRATCHING", "scdldlp", -1, true, false )
  1730. end)
  1731.  
  1732. addCommandHandler("rapujesz3",function(plr,cmd)
  1733. if (isPedInVehicle(plr)) then
  1734. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1735. return
  1736. end
  1737. bindKey(plr, "ENTER", "down", stopAnimacja)
  1738. setPedAnimation ( plr, "Flowers", "Flower_Hit", -1, true, false )
  1739. end)
  1740.  
  1741. addCommandHandler("rapujesz4",function(plr,cmd)
  1742. if (isPedInVehicle(plr)) then
  1743. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1744. return
  1745. end
  1746. bindKey(plr, "ENTER", "down", stopAnimacja)
  1747. setPedAnimation ( plr, "RAPPING", "RAP_C_Loop", -1, true, false )
  1748. end)
  1749.  
  1750. addCommandHandler("rapujesz5",function(plr,cmd)
  1751. if (isPedInVehicle(plr)) then
  1752. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1753. return
  1754. end
  1755. bindKey(plr, "ENTER", "down", stopAnimacja)
  1756. setPedAnimation ( plr, "RAPPING", "RAP_B_Loop", -1, true, false )
  1757. end)
  1758.  
  1759. addCommandHandler("rapujesz6",function(plr,cmd)
  1760. if (isPedInVehicle(plr)) then
  1761. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1762. return
  1763. end
  1764. bindKey(plr, "ENTER", "down", stopAnimacja)
  1765. setPedAnimation ( plr, "SCRATCHING", "scdrdlp", -1, true, false )
  1766. end)
  1767.  
  1768. addCommandHandler("rapujesz7",function(plr,cmd)
  1769. if (isPedInVehicle(plr)) then
  1770. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1771. return
  1772. end
  1773. bindKey(plr, "ENTER", "down", stopAnimacja)
  1774. setPedAnimation ( plr, "SCRATCHING", "scdrulp", -1, true, false )
  1775. end)
  1776.  
  1777. addCommandHandler("rapujesz8",function(plr,cmd)
  1778. if (isPedInVehicle(plr)) then
  1779. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1780. return
  1781. end
  1782. bindKey(plr, "ENTER", "down", stopAnimacja)
  1783. setPedAnimation ( plr, "RAPPING", "RAP_A_Loop", -1, true, false )
  1784. end)
  1785. addCommandHandler("rolki",function(plr,cmd)
  1786. if (isPedInVehicle(plr)) then
  1787. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1788. return
  1789. end
  1790. bindKey(plr, "ENTER", "down", stopAnimacja)
  1791. setPedAnimation ( plr, "SKATE", "skate_run", -1, true, true )
  1792. end)
  1793.  
  1794. addCommandHandler("rolki2",function(plr,cmd)
  1795. if (isPedInVehicle(plr)) then
  1796. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1797. return
  1798. end
  1799. bindKey(plr, "ENTER", "down", stopAnimacja)
  1800. setPedAnimation ( plr, "SKATE", "skate_sprint", -1, true, true )
  1801. end)
  1802. addCommandHandler("umierasz",function(plr,cmd)
  1803. if (isPedInVehicle(plr)) then
  1804. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1805. return
  1806. end
  1807. bindKey(plr, "ENTER", "down", stopAnimacja)
  1808. setPedAnimation ( plr, "ped", "FLOOR_hit_f", -1, false, false )
  1809. end)
  1810.  
  1811. addCommandHandler("umierasz2",function(plr,cmd)
  1812. if (isPedInVehicle(plr)) then
  1813. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1814. return
  1815. end
  1816. bindKey(plr, "ENTER", "down", stopAnimacja)
  1817. setPedAnimation ( plr, "ped", "FLOOR_hit", -1, false, false )
  1818. end)
  1819.  
  1820. addCommandHandler("bijesz",function(plr,cmd)
  1821. if (isPedInVehicle(plr)) then
  1822. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1823. return
  1824. end
  1825. bindKey(plr, "ENTER", "down", stopAnimacja)
  1826. setPedAnimation ( plr, "BASEBALL", "Bat_M", -1, true, false )
  1827. end)
  1828.  
  1829. addCommandHandler("bijesz2",function(plr,cmd)
  1830. if (isPedInVehicle(plr)) then
  1831. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1832. return
  1833. end
  1834. bindKey(plr, "ENTER", "down", stopAnimacja)
  1835. setPedAnimation ( plr, "RIOT", "RIOT_PUNCHES", -1, true, false )
  1836. end)
  1837.  
  1838. addCommandHandler("bijesz3",function(plr,cmd)
  1839. if (isPedInVehicle(plr)) then
  1840. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1841. return
  1842. end
  1843. bindKey(plr, "ENTER", "down", stopAnimacja)
  1844. setPedAnimation ( plr, "FIGHT_B", "FightB_M", -1, true, false )
  1845. end)
  1846.  
  1847. addCommandHandler("bijesz4",function(plr,cmd)
  1848. if (isPedInVehicle(plr)) then
  1849. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1850. return
  1851. end
  1852. bindKey(plr, "ENTER", "down", stopAnimacja)
  1853. setPedAnimation ( plr, "MISC", "bitchslap", -1, true, false )
  1854. end)
  1855.  
  1856. addCommandHandler("bijesz5",function(plr,cmd)
  1857. if (isPedInVehicle(plr)) then
  1858. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1859. return
  1860. end
  1861. bindKey(plr, "ENTER", "down", stopAnimacja)
  1862. setPedAnimation ( plr, "ped", "BIKE_elbowR", -1, true, false )
  1863. end)
  1864.  
  1865. addCommandHandler("wolasz",function(plr,cmd)
  1866. if (isPedInVehicle(plr)) then
  1867. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1868. return
  1869. end
  1870. bindKey(plr, "ENTER", "down", stopAnimacja)
  1871. setPedAnimation ( plr, "RYDER", "RYD_Beckon_01", -1, true, false )
  1872. end)
  1873.  
  1874. addCommandHandler("wolasz2",function(plr,cmd)
  1875. if (isPedInVehicle(plr)) then
  1876. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1877. return
  1878. end
  1879. bindKey(plr, "ENTER", "down", stopAnimacja)
  1880. setPedAnimation ( plr, "POLICE", "CopTraf_Come", -1, true, false )
  1881. end)
  1882.  
  1883. addCommandHandler("wolasz3",function(plr,cmd)
  1884. if (isPedInVehicle(plr)) then
  1885. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1886. return
  1887. end
  1888. bindKey(plr, "ENTER", "down", stopAnimacja)
  1889. setPedAnimation ( plr, "RYDER", "RYD_Beckon_02", -1, true, false )
  1890. end)
  1891.  
  1892. addCommandHandler("zatrzymujesz",function(plr,cmd)
  1893. if (isPedInVehicle(plr)) then
  1894. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1895. return
  1896. end
  1897. bindKey(plr, "ENTER", "down", stopAnimacja)
  1898. setPedAnimation ( plr, "POLICE", "CopTraf_Stop", -1, true, false )
  1899. end)
  1900.  
  1901. addCommandHandler("wskazujesz",function(plr,cmd)
  1902. if (isPedInVehicle(plr)) then
  1903. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1904. return
  1905. end
  1906. bindKey(plr, "ENTER", "down", stopAnimacja)
  1907. setPedAnimation ( plr, "SHOP", "ROB_Loop", -1, true, false )
  1908. end)
  1909.  
  1910. addCommandHandler("rozgladasz",function(plr,cmd)
  1911. if (isPedInVehicle(plr)) then
  1912. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1913. return
  1914. end
  1915. bindKey(plr, "ENTER", "down", stopAnimacja)
  1916. setPedAnimation ( plr, "ON_LOOKERS", "lkaround_loop", -1, true, false )
  1917. end)
  1918.  
  1919. addCommandHandler("krzyczysz",function(plr,cmd)
  1920. if (isPedInVehicle(plr)) then
  1921. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1922. return
  1923. end
  1924. bindKey(plr, "ENTER", "down", stopAnimacja)
  1925. setPedAnimation ( plr, "ON_LOOKERS", "shout_in", -1, true, false )
  1926. end)
  1927.  
  1928. addCommandHandler("fuckyou",function(plr,cmd)
  1929. if (isPedInVehicle(plr)) then
  1930. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1931. return
  1932. end
  1933. bindKey(plr, "ENTER", "down", stopAnimacja)
  1934. setPedAnimation ( plr, "RIOT", "RIOT_FUKU", -1, true, false )
  1935. end)
  1936.  
  1937. addCommandHandler("tchorz",function(plr,cmd)
  1938. if (isPedInVehicle(plr)) then
  1939. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1940. return
  1941. end
  1942. bindKey(plr, "ENTER", "down", stopAnimacja)
  1943. setPedAnimation ( plr, "ped", "cower", -1, false, false )
  1944. end)
  1945.  
  1946. addCommandHandler("kopiesz",function(plr,cmd)
  1947. if (isPedInVehicle(plr)) then
  1948. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1949. return
  1950. end
  1951. bindKey(plr, "ENTER", "down", stopAnimacja)
  1952. setPedAnimation ( plr, "GANGS", "shake_carK", -1, true, false )
  1953. end)
  1954.  
  1955. addCommandHandler("kopiesz2",function(plr,cmd)
  1956. if (isPedInVehicle(plr)) then
  1957. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1958. return
  1959. end
  1960. bindKey(plr, "ENTER", "down", stopAnimacja)
  1961. setPedAnimation ( plr, "FIGHT_D", "FightD_G", -1, true, false )
  1962. end)
  1963.  
  1964. addCommandHandler("kopiesz3",function(plr,cmd)
  1965. if (isPedInVehicle(plr)) then
  1966. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1967. return
  1968. end
  1969. bindKey(plr, "ENTER", "down", stopAnimacja)
  1970. setPedAnimation ( plr, "FIGHT_C", "FightC_3", -1, false )
  1971. end)
  1972.  
  1973. addCommandHandler("wywazasz",function(plr,cmd)
  1974. if (isPedInVehicle(plr)) then
  1975. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1976. return
  1977. end
  1978. bindKey(plr, "ENTER", "down", stopAnimacja)
  1979. setPedAnimation ( plr, "GANGS", "shake_carSH", -1, true, false )
  1980. end)
  1981.  
  1982. addCommandHandler("wywazasz2",function(plr,cmd)
  1983. if (isPedInVehicle(plr)) then
  1984. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1985. return
  1986. end
  1987. bindKey(plr, "ENTER", "down", stopAnimacja)
  1988. setPedAnimation ( plr, "POLICE", "Door_Kick", -1, true, false )
  1989. end)
  1990.  
  1991. addCommandHandler("kieszen",function(plr,cmd)
  1992. if (isPedInVehicle(plr)) then
  1993. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  1994. return
  1995. end
  1996. bindKey(plr, "ENTER", "down", stopAnimacja)
  1997. setPedAnimation ( plr, "GANGS", "leanIDLE", -1, true, false )
  1998. end)
  1999.  
  2000. addCommandHandler("celujesz",function(plr,cmd)
  2001. if (isPedInVehicle(plr)) then
  2002. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2003. return
  2004. end
  2005. bindKey(plr, "ENTER", "down", stopAnimacja)
  2006. setPedAnimation ( plr, "ped", "ARRESTgun", -1, false, false )
  2007. end)
  2008.  
  2009. addCommandHandler("kichasz",function(plr,cmd)
  2010. if (isPedInVehicle(plr)) then
  2011. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2012. return
  2013. end
  2014. bindKey(plr, "ENTER", "down", stopAnimacja)
  2015. setPedAnimation ( plr, "VENDING", "vend_eat1_P", -1, true, false )
  2016. end)
  2017.  
  2018. addCommandHandler("pocalunek",function(plr,cmd)
  2019. if (isPedInVehicle(plr)) then
  2020. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2021. return
  2022. end
  2023. bindKey(plr, "ENTER", "down", stopAnimacja)
  2024. setPedAnimation ( plr, "BD_FIRE", "Grlfrd_Kiss_03", -1, true, false )
  2025. end)
  2026.  
  2027. addCommandHandler("taxi",function(plr,cmd)
  2028. if (isPedInVehicle(plr)) then
  2029. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2030. return
  2031. end
  2032. bindKey(plr, "ENTER", "down", stopAnimacja)
  2033. setPedAnimation ( plr, "MISC", "Hiker_Pose", -1, false, false )
  2034. end)
  2035.  
  2036. addCommandHandler("taxi2",function(plr,cmd)
  2037. if (isPedInVehicle(plr)) then
  2038. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2039. return
  2040. end
  2041. bindKey(plr, "ENTER", "down", stopAnimacja)
  2042. setPedAnimation ( plr, "MISC", "Hiker_Pose_L", -1, false, false )
  2043. end)
  2044.  
  2045. addCommandHandler("noga",function(plr,cmd)
  2046. if (isPedInVehicle(plr)) then
  2047. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2048. return
  2049. end
  2050. bindKey(plr, "ENTER", "down", stopAnimacja)
  2051. setPedAnimation ( plr, "SHOP", "SHP_Jump_Glide", -1, false, false )
  2052. end)
  2053.  
  2054. addCommandHandler("pozegnanie",function(plr,cmd)
  2055. if (isPedInVehicle(plr)) then
  2056. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2057. return
  2058. end
  2059. bindKey(plr, "ENTER", "down", stopAnimacja)
  2060. setPedAnimation ( plr, "BD_FIRE", "BD_Panic_03", -1, true, false )
  2061. end)
  2062.  
  2063. addCommandHandler("cud",function(plr,cmd)
  2064. if (isPedInVehicle(plr)) then
  2065. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2066. return
  2067. end
  2068. bindKey(plr, "ENTER", "down", stopAnimacja)
  2069. setPedAnimation ( plr, "CARRY", "crry_prtial", -1, true, false )
  2070. end)
  2071.  
  2072. addCommandHandler("cud2",function(plr,cmd)
  2073. if (isPedInVehicle(plr)) then
  2074. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2075. return
  2076. end
  2077. bindKey(plr, "ENTER", "down", stopAnimacja)
  2078. setPedAnimation ( plr, "ON_LOOKERS", "Pointup_loop", -1, false, false )
  2079. end)
  2080.  
  2081. addCommandHandler("delirium",function(plr,cmd)
  2082. if (isPedInVehicle(plr)) then
  2083. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2084. return
  2085. end
  2086. bindKey(plr, "ENTER", "down", stopAnimacja)
  2087. setPedAnimation ( plr, "CRACK", "crckdeth1", -1, false )
  2088. end)
  2089.  
  2090. addCommandHandler("delirium2",function(plr,cmd)
  2091. if (isPedInVehicle(plr)) then
  2092. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2093. return
  2094. end
  2095. bindKey(plr, "ENTER", "down", stopAnimacja)
  2096. setPedAnimation ( plr, "CRACK", "crckdeth2", -1, true, false )
  2097. end)
  2098.  
  2099. addCommandHandler("delirium3",function(plr,cmd)
  2100. if (isPedInVehicle(plr)) then
  2101. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2102. return
  2103. end
  2104. bindKey(plr, "ENTER", "down", stopAnimacja)
  2105. setPedAnimation ( plr, "CRACK", "crckidle3", -1, true, false )
  2106. end)
  2107.  
  2108. addCommandHandler("delirium4",function(plr,cmd)
  2109. if (isPedInVehicle(plr)) then
  2110. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2111. return
  2112. end
  2113. bindKey(plr, "ENTER", "down", stopAnimacja)
  2114. setPedAnimation ( plr, "CHAINSAW", "csaw_part", -1, true, false )
  2115. end)
  2116.  
  2117. addCommandHandler("delirium5",function(plr,cmd)
  2118. if (isPedInVehicle(plr)) then
  2119. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2120. return
  2121. end
  2122. bindKey(plr, "ENTER", "down", stopAnimacja)
  2123. setPedAnimation ( plr, "CASINO", "Roulette_loop", -1, true, false )
  2124. end)
  2125.  
  2126. addCommandHandler("naprawiasz",function(plr,cmd)
  2127. if (isPedInVehicle(plr)) then
  2128. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2129. return
  2130. end
  2131. bindKey(plr, "ENTER", "down", stopAnimacja)
  2132. setPedAnimation ( plr, "CAR", "flag_drop", -1, true, false )
  2133. end)
  2134.  
  2135. addCommandHandler("naprawiasz2",function(plr,cmd)
  2136. if (isPedInVehicle(plr)) then
  2137. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2138. return
  2139. end
  2140. bindKey(plr, "ENTER", "down", stopAnimacja)
  2141. setPedAnimation ( plr, "CAR", "Fixn_Car_Loop", -1, true, false )
  2142. end)
  2143.  
  2144. addCommandHandler("placzesz",function(plr,cmd)
  2145. if (isPedInVehicle(plr)) then
  2146. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2147. return
  2148. end
  2149. bindKey(plr, "ENTER", "down", stopAnimacja)
  2150. setPedAnimation ( plr, "GRAVEYARD", "mrnF_loop", -1, true, false )
  2151. end)
  2152.  
  2153. addCommandHandler("kibicujesz",function(plr,cmd)
  2154. if (isPedInVehicle(plr)) then
  2155. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2156. return
  2157. end
  2158. bindKey(plr, "ENTER", "down", stopAnimacja)
  2159. setPedAnimation ( plr, "RIOT", "RIOT_ANGRY_B", -1, true, false )
  2160. end)
  2161.  
  2162. addCommandHandler("kibicujesz2",function(plr,cmd)
  2163. if (isPedInVehicle(plr)) then
  2164. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2165. return
  2166. end
  2167. bindKey(plr, "ENTER", "down", stopAnimacja)
  2168. setPedAnimation ( plr, "ON_LOOKERS", "wave_loop", -1, true, false )
  2169. end)
  2170.  
  2171. addCommandHandler("bioenergoterapeuta",function(plr,cmd)
  2172. if (isPedInVehicle(plr)) then
  2173. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2174. return
  2175. end
  2176. bindKey(plr, "ENTER", "down", stopAnimacja)
  2177. setPedAnimation ( plr, "WUZI", "Wuzi_Greet_Wuzi", -1, true, false )
  2178. end)
  2179.  
  2180. addCommandHandler("meteorolog",function(plr,cmd)
  2181. if (isPedInVehicle(plr)) then
  2182. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2183. return
  2184. end
  2185. bindKey(plr, "ENTER", "down", stopAnimacja)
  2186. setPedAnimation ( plr, "WUZI", "Wuzi_grnd_chk", -1, true, false )
  2187. end)
  2188.  
  2189. addCommandHandler("klepiesz",function(plr,cmd)
  2190. if (isPedInVehicle(plr)) then
  2191. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2192. return
  2193. end
  2194. bindKey(plr, "ENTER", "down", stopAnimacja)
  2195. setPedAnimation ( plr, "SWEET", "sweet_ass_slap", -1, true, false )
  2196. end)
  2197.  
  2198. addCommandHandler("cierpisz",function(plr,cmd)
  2199. if (isPedInVehicle(plr)) then
  2200. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2201. return
  2202. end
  2203. bindKey(plr, "ENTER", "down", stopAnimacja)
  2204. setPedAnimation ( plr, "SWEET", "Sweet_injuredloop", -1, true, false )
  2205. end)
  2206.  
  2207. addCommandHandler("starzec",function(plr,cmd)
  2208. if (isPedInVehicle(plr)) then
  2209. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2210. return
  2211. end
  2212. bindKey(plr, "ENTER", "down", stopAnimacja)
  2213. setPedAnimation ( plr, "ped", "WALK_shuffle", -1, true, true )
  2214. end)
  2215.  
  2216. addCommandHandler("starzec2",function(plr,cmd)
  2217. if (isPedInVehicle(plr)) then
  2218. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2219. return
  2220. end
  2221. bindKey(plr, "ENTER", "down", stopAnimacja)
  2222. setPedAnimation ( plr, "ped", "WOMAN_walkfatold", -1, true, true )
  2223. end)
  2224.  
  2225. addCommandHandler("starzec3",function(plr,cmd)
  2226. if (isPedInVehicle(plr)) then
  2227. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2228. return
  2229. end
  2230. bindKey(plr, "ENTER", "down", stopAnimacja)
  2231. setPedAnimation ( plr, "ped", "WOMAN_walkshop", -1, true, true )
  2232. end)
  2233.  
  2234. addCommandHandler("reanimujesz",function(plr,cmd)
  2235. if (isPedInVehicle(plr)) then
  2236. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2237. return
  2238. end
  2239. bindKey(plr, "ENTER", "down", stopAnimacja)
  2240. setPedAnimation ( plr, "MEDIC", "CPR", -1, false, false )
  2241. end)
  2242.  
  2243. addCommandHandler("myjesz",function(plr,cmd)
  2244. if (isPedInVehicle(plr)) then
  2245. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2246. return
  2247. end
  2248. bindKey(plr, "ENTER", "down", stopAnimacja)
  2249. setPedAnimation ( plr, "CASINO", "dealone", -1, true, false )
  2250. end)
  2251.  
  2252. addCommandHandler("zadowolony",function(plr,cmd)
  2253. if (isPedInVehicle(plr)) then
  2254. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2255. return
  2256. end
  2257. bindKey(plr, "ENTER", "down", stopAnimacja)
  2258. setPedAnimation ( plr, "CASINO", "manwind", -1, true, false )
  2259. end)
  2260.  
  2261. addCommandHandler("zadowolony2",function(plr,cmd)
  2262. if (isPedInVehicle(plr)) then
  2263. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2264. return
  2265. end
  2266. bindKey(plr, "ENTER", "down", stopAnimacja)
  2267. setPedAnimation ( plr, "CASINO", "manwinb", -1, true, false )
  2268. end)
  2269.  
  2270. addCommandHandler("zalamany",function(plr,cmd)
  2271. if (isPedInVehicle(plr)) then
  2272. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2273. return
  2274. end
  2275. bindKey(plr, "ENTER", "down", stopAnimacja)
  2276. setPedAnimation ( plr, "CASINO", "Roulette_lose", -1, true, false )
  2277. end)
  2278.  
  2279. addCommandHandler("zmeczony",function(plr,cmd)
  2280. if (isPedInVehicle(plr)) then
  2281. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2282. return
  2283. end
  2284. bindKey(plr, "ENTER", "down", stopAnimacja)
  2285. setPedAnimation ( plr, "FAT", "IDLE_tired", -1, true, false )
  2286. end)
  2287.  
  2288. addCommandHandler("ochnie",function(plr,cmd)
  2289. if (isPedInVehicle(plr)) then
  2290. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2291. return
  2292. end
  2293. bindKey(plr, "ENTER", "down", stopAnimacja)
  2294. setPedAnimation ( plr, "MISC", "plyr_shkhead", -1, true, false )
  2295. end)
  2296.  
  2297. addCommandHandler("cwaniak1",function(plr,cmd)
  2298. if (isPedInVehicle(plr)) then
  2299. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2300. return
  2301. end
  2302. bindKey(plr, "ENTER", "down", stopAnimacja)
  2303. setPedAnimation ( plr, "GHANDS", "gsign1", -1, true, false )
  2304. end)
  2305.  
  2306. addCommandHandler("cwaniak2",function(plr,cmd)
  2307. if (isPedInVehicle(plr)) then
  2308. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2309. return
  2310. end
  2311. bindKey(plr, "ENTER", "down", stopAnimacja)
  2312. setPedAnimation ( plr, "GHANDS", "gsign1LH", -1, true, false )
  2313. end)
  2314.  
  2315. addCommandHandler("cwaniak3",function(plr,cmd)
  2316. if (isPedInVehicle(plr)) then
  2317. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2318. return
  2319. end
  2320. bindKey(plr, "ENTER", "down", stopAnimacja)
  2321. setPedAnimation ( plr, "GHANDS", "gsign2", -1, true, false )
  2322. end)
  2323.  
  2324. addCommandHandler("cwaniak4",function(plr,cmd)
  2325. if (isPedInVehicle(plr)) then
  2326. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2327. return
  2328. end
  2329. bindKey(plr, "ENTER", "down", stopAnimacja)
  2330. setPedAnimation ( plr, "GHANDS", "gsign2LH", -1, true, false )
  2331. end)
  2332.  
  2333. addCommandHandler("cwaniak5",function(plr,cmd)
  2334. if (isPedInVehicle(plr)) then
  2335. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2336. return
  2337. end
  2338. bindKey(plr, "ENTER", "down", stopAnimacja)
  2339. setPedAnimation ( plr, "GHANDS", "gsign3", -1, true, false )
  2340. end)
  2341.  
  2342. addCommandHandler("cwaniak6",function(plr,cmd)
  2343. if (isPedInVehicle(plr)) then
  2344. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2345. return
  2346. end
  2347. bindKey(plr, "ENTER", "down", stopAnimacja)
  2348. setPedAnimation ( plr, "GHANDS", "gsign3LH", -1, true, false )
  2349. end)
  2350.  
  2351. addCommandHandler("cwaniak7",function(plr,cmd)
  2352. if (isPedInVehicle(plr)) then
  2353. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2354. return
  2355. end
  2356. bindKey(plr, "ENTER", "down", stopAnimacja)
  2357. setPedAnimation ( plr, "GHANDS", "gsign4", -1, true, false )
  2358. end)
  2359.  
  2360. addCommandHandler("cwaniak8",function(plr,cmd)
  2361. if (isPedInVehicle(plr)) then
  2362. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2363. return
  2364. end
  2365. bindKey(plr, "ENTER", "down", stopAnimacja)
  2366. setPedAnimation ( plr, "GHANDS", "gsign4LH", -1, true, false )
  2367. end)
  2368.  
  2369.  
  2370. addCommandHandler("cwaniak9",function(plr,cmd)
  2371. if (isPedInVehicle(plr)) then
  2372. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2373. return
  2374. end
  2375. bindKey(plr, "ENTER", "down", stopAnimacja)
  2376. setPedAnimation ( plr, "GHANDS", "gsign5", -1, true, false )
  2377. end)
  2378.  
  2379. addCommandHandler("cwaniak10",function(plr,cmd)
  2380. if (isPedInVehicle(plr)) then
  2381. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2382. return
  2383. end
  2384. bindKey(plr, "ENTER", "down", stopAnimacja)
  2385. setPedAnimation ( plr, "GHANDS", "gsign5LH", -1, true, false )
  2386. end)
  2387.  
  2388. addCommandHandler("pijak",function(plr,cmd)
  2389. if (isPedInVehicle(plr)) then
  2390. outputChatBox("* Najpierw wysiądź z pojazdu !", plr)
  2391. return
  2392. end
  2393. bindKey(plr, "ENTER", "down", stopAnimacja)
  2394. setPedAnimation ( plr, "CRACK", "crckidle4", -1, true, false )
  2395. end)
  2396.  
  2397. addCommandHandler("cv", function(plr,cmd,name)
  2398. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2399. if getElementData(plr, "player:admin") then
  2400. if not name then return end
  2401. local veh=getPedOccupiedVehicle(plr)
  2402. if veh then
  2403. if getElementData(veh,"vehicle:spawn") then
  2404. outputChatBox("✘ #FFFFFFNie możesz zmienić pojazdu prywatnego.", plr, 255, 0, 0, true)
  2405. return
  2406. end
  2407. end
  2408.  
  2409. if tonumber(name) ~= nil then
  2410. outputChatBox("* Musisz wpisać nazwę, nie model.", plr)
  2411. return
  2412. end
  2413.  
  2414. if name == "rhino" or name == "hydra" or name == "hunter" or name == "Rhino" or name == "Hunter" or name == "Hydra" then
  2415. outputChatBox("✘ #FFFFFFNie możesz zrespawnować tego pojazdu, ponieważ jest zablokowany.", plr, 255, 0, 0, true)
  2416. return
  2417. end
  2418.  
  2419. local dim = getElementDimension(plr)
  2420.  
  2421. local x,y,z = getElementPosition(plr)
  2422. local rx,ry,rz = getElementRotation(plr)
  2423. local veh = createVehicle(getVehicleModelFromName(name), x, y, z, rx, ry, rz)
  2424. local model = getVehicleModelFromName(name)
  2425.  
  2426. setElementInterior(veh,getElementInterior(plr))
  2427. setElementDimension(veh,getElementDimension(plr))
  2428. setElementData(veh, "vehicle:fuel", 100)
  2429. warpPedIntoVehicle(plr,veh)
  2430. outputChatBox("✔ #FFFFFFPomyślnie zrespawnowałeś(aś) pojazd – "..name, plr, 0, 255, 0, true)
  2431. end
  2432. end
  2433. end)
  2434.  
  2435. addCommandHandler("dv", function(plr,cmd)
  2436. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2437. if getElementData(plr, "player:admin") then
  2438. local veh=getPedOccupiedVehicle(plr)
  2439. if not veh then
  2440. outputChatBox("Ⓘ #FFFFFFMusisz znajdować się w pojeździe, który chcesz usunąć.", plr)
  2441. return
  2442. end
  2443. if getElementData(veh,"vehicle:spawn") then
  2444. outputChatBox("✘ #FFFFFFNie możesz usunąć tego pojazdu.", plr, 255, 0, 0, true)
  2445. return
  2446. end
  2447. destroyElement(veh)
  2448. outputChatBox("✔ #FFFFFFPomyślnie usunąłeś(aś) zrespawnowany pojazd.", plr, 0, 255, 0, true)
  2449. end
  2450. end
  2451. end)
  2452.  
  2453. local stopChat = false
  2454.  
  2455. addCommandHandler("g", function(plr, cmd, ...)
  2456. if getElementData(plr, "player:premium") == false then outputChatBox("Ⓘ #FFFFFFMusisz posiadać aktywne konto premium, aby móc pisać na czacie globalnym.", plr, 255, 255, 0, true) return end
  2457. if not ... then
  2458. local x = getElementData(plr,"player:pchatoff")
  2459. if x == false then
  2460. outputChatBox("✔ #FFFFFFPomyślnie wyłączyłeś(aś) chat premium.",plr, 0, 255, 0, true)
  2461. setElementData(plr,"player:pchatoff",true)
  2462. end
  2463. if x == true then
  2464. outputChatBox("✔ #FFFFFFPomyślnie włączyłeś(aś) chat premium.",plr, 0, 255, 0, true)
  2465. setElementData(plr,"player:pchatoff",false)
  2466. end
  2467. return end
  2468. if stopChat then
  2469. cancelEvent()
  2470. outputChatBox('Ⓘ #FFFFFFPosiadasz wyłączony chat premium.', plr, 255, 255, 0, true)
  2471. return end
  2472. if getElementData(plr,"player:pchatoff") then
  2473. cancelEvent()
  2474. outputChatBox('Ⓘ #FFFFFFPosiadasz wyłączony chat premium.', plr, 255, 255, 0, true)
  2475. return end
  2476. if ... then
  2477. local message = table.concat ( { ... }, " " )
  2478. local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
  2479. for _,p in pairs(getElementsByType("player")) do
  2480. if getElementData(p,"player:premium") and not getElementData(p,"player:pchatoff") then
  2481. --outputChatBox("#C0FF00"..getElementData(plr,"id").."#C0FF00> #C0FF00"..name.."#C0FF00: #C0FF00"..message:gsub("#%x%x%x%x%x%x",""), p, 255, 255, 255, true)
  2482. outputChatBox("#FFC000GL#ffffff> [#FFC000"..getElementData(plr,"id").."#ffffff]"..name.."#ffffff: "..message:gsub("#%x%x%x%x%x%x","").."", p, 255, 255, 255, true)
  2483. end
  2484. end
  2485. local desc = "[#ffdd00GL#ffffff] ["..getElementData(plr,"id").."] "..name..": "..message:gsub("#%x%x%x%x%x%x","")..""
  2486. triggerEvent("admin:addText", resourceRoot, desc:gsub("#%x%x%x%x%x%x",""))
  2487. outputServerLog(desc)
  2488. end
  2489. end)
  2490. addCommandHandler("up", function(plr, cmd, value)
  2491. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2492. if (tonumber(value)==nil) then
  2493. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /up <ile>", plr, 255, 255, 0, true)
  2494. return
  2495. end
  2496.  
  2497. local e = plr
  2498. if (isPedInVehicle(plr)) then
  2499. e = getPedOccupiedVehicle(plr)
  2500. end
  2501.  
  2502. local x,y,z = getElementPosition(e)
  2503. setElementPosition(e, x, y, z+tonumber(value))
  2504. end
  2505. end)
  2506.  
  2507. addCommandHandler("thru", function(plr, cmd, value)
  2508. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2509. if (tonumber(value)==nil) then
  2510. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /thru <ile>", plr, 255, 255, 0, true)
  2511. return
  2512. end
  2513.  
  2514. local e = plr
  2515. if getCameraTarget(plr) ~= plr then
  2516. e = getCameraTarget(plr)
  2517. end
  2518.  
  2519. if (isPedInVehicle(plr)) then
  2520. e = getPedOccupiedVehicle(e)
  2521. end
  2522.  
  2523. local x,y,z = getElementPosition(e)
  2524. local _,_,rz = getElementRotation(e)
  2525. local rrz = math.rad(rz)
  2526. local x = x + (value * math.sin(-rrz))
  2527. local y = y + (value * math.cos(-rrz))
  2528. setElementPosition(e, x, y, z)
  2529. end
  2530. end)
  2531.  
  2532.  
  2533. local zapisane_pozycje = {}
  2534. addCommandHandler("sp", function(plr,cmd)
  2535. if getAdmin(plr) then
  2536. local pos={}
  2537. pos[1],pos[2],pos[3]=getElementPosition(plr)
  2538. pos[4]=getElementInterior(plr)
  2539. pos[5]=getElementDimension(plr)
  2540. local uid = getElementData(plr,"player:sid")
  2541. zapisane_pozycje[uid] = pos
  2542. outputChatBox("✔ #FFFFFFPomyślnie zapisano pozycję.", plr, 0, 255, 0, true)
  2543. end
  2544. end)
  2545.  
  2546. addCommandHandler("lp", function(plr,cmd)
  2547. if getAdmin(plr) then
  2548. local uid = getElementData(plr,"player:sid")
  2549. local pos=zapisane_pozycje[uid]
  2550. if (not pos) then
  2551. outputChatBox("Ⓘ #FFFFFFNie posiadasz zapisanej żadnej pozycji.", plr, 255, 255, 0, true)
  2552. return
  2553. end
  2554. local veh = getPedOccupiedVehicle(plr)
  2555. if veh then plr = veh end
  2556. setElementPosition(plr,pos[1],pos[2],pos[3])
  2557. setElementInterior(plr,pos[4])
  2558. setElementDimension(plr,pos[5])
  2559. outputChatBox("✔ #FFFFFFPomyślnie wczytano pozycję.", plr, 0, 255, 0, true)
  2560. end
  2561. end)
  2562.  
  2563. addCommandHandler("pj",function(plr,cmd,pj)
  2564. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2565. if not pj or not tonumber(pj) then outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /paint.job <0-3>", plr, 255, 255, 0, true) return end
  2566. local pj = tonumber(pj)
  2567. if pj < 0 or pj > 3 then outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /paint.job <0-3>", plr, 255, 255, 0, true) return end
  2568. local veh = getPedOccupiedVehicle(plr)
  2569. if not veh then outputChatBox("Ⓘ #FFFFFFMusisz znajdować się w pojeździe, którego PaintJob chcesz zmienić.", plr, 255, 255, 0, true) return end
  2570. setVehiclePaintjob(veh,pj)
  2571. end
  2572. end)
  2573.  
  2574. addCommandHandler("vinfo", function(plr,cmd,pojazd)
  2575. if not getAdmin(plr) then outputChatBox("✘ #FFFFFFNie posiadasz uprawnień.", plr, 255, 0, 0, true) return end
  2576. if not pojazd or not tonumber(pojazd) then
  2577. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /vinfo <id pojazdu>", plr, 255, 255, 0, true)
  2578. return
  2579. end
  2580. pojazd=tonumber(pojazd)
  2581. local result = exports['pystories-db']:dbGet("SELECT * FROM pystories_vehicles WHERE id=?",pojazd)
  2582. if not result or #result < 1 then
  2583. outputChatBox("✘ #FFFFFFNie znaleziono podanego pojazdu.")
  2584. return end
  2585. local query = exports['pystories-db']:dbGet("SELECT * FROM pystories_users WHERE id=?",result[1].ownedPlayer)
  2586. outputChatBox("Ⓘ #FFFFFFID pojazdu – " .. result[1].id .. " – model – " .. result[1].model .. " ("..getVehicleNameFromModel(result[1].model)..")", plr, 255, 255, 0, true)
  2587. outputChatBox("Ⓘ #FFFFFFWłaściciel – " .. query[1].login .. " ("..result[1].ownedPlayer..")", plr, 255, 255, 0, true)
  2588. outputChatBox("Ⓘ #FFFFFFOstatni kierowca – " .. result[1].driver .. "| Przebieg – " .. result[1].mileage, plr, 255, 255, 0, true)
  2589. outputChatBox("Ⓘ #FFFFFFStan paliwa – " .. result[1].fuel .. " | Przechowalnia – " ..result[1].parking, plr, 255, 255, 0, true)
  2590. end)
  2591.  
  2592. addCommandHandler("veh.list", function(plr,cmd,cel)
  2593. if not getAdmin(plr) then outputChatBox("✘ #FFFFFFNie posiadasz uprawnień.", plr) return end
  2594. if not cel then
  2595. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /veh.list <id/nick>", plr, 255, 255, 0, true)
  2596. return
  2597. end
  2598. local target=exports["pystories-core"]:findPlayer(plr,cel)
  2599. if not target then
  2600. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  2601. return
  2602. end
  2603. local resulte = exports['pystories-db']:dbGet("SELECT * FROM pystories_vehicles WHERE ownedPlayer=?",getElementData(target, "player:sid"))
  2604. if not resulte or #resulte < 1 then
  2605. outputChatBox("✘ #FFFFFFNie znaleziono podanego pojazdu.", plr, 255, 0, 0, true)
  2606. return end
  2607. outputChatBox("Ⓘ #FFFFFFPojazdy – "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."", plr, 255, 255, 0, true)
  2608. for i,result in pairs(resulte) do
  2609. outputChatBox("Ⓘ #FFFFFFID pojazdu – " .. result.id .. " – model – " .. result.model .. " ("..getVehicleNameFromModel(result.model)..")", plr, 255, 255, 0, true)
  2610. -- end
  2611. -- outputChatBox("",plr)
  2612. exports["pystories-db"]:dbSet("INSERT INTO admin_logs_cmd (uid,moderator,cmd) VALUES (?,?,?)", getElementData(plr,"player:sid"), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), "veh.list "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."")
  2613. end
  2614.  
  2615. addCommandHandler("ginfo", function(plr,cmd,cel)
  2616. if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
  2617. if not cel then
  2618. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /ginfo <id/nick>", plr, 255, 255, 0, true)
  2619. return
  2620. end
  2621. local target=exports["pystories-core"]:findPlayer(plr,cel)
  2622. if not target then
  2623. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  2624. return
  2625. end
  2626. gracz=tonumber(gracz)
  2627. exports["pystories-db"]:dbSet("INSERT INTO admin_logs_cmd (sid,moderator,cmd) VALUES (?,?,?)", getElementData(plr,"player:sid"), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), "ginfo "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."")
  2628. local result = exports['pystories-db']:dbGet("SELECT * FROM pystories_users WHERE id=?",getElementData(target, "player:sid"))
  2629. if not result or #result < 1 then
  2630. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  2631. return end
  2632. outputChatBox("Ⓘ #FFFFFFLogin – " .. result[1].login, plr, 255, 255, 0, true)
  2633. outputChatBox("Ⓘ #FFFFFFPieniądze – " .. result[1].money, plr, 255, 255, 0, true)
  2634. outputChatBox("Ⓘ #FFFFFFPieniądze w bankomacie – " .. result[1].bank_money, plr, 255, 255, 0, true)
  2635. outputChatBox("Ⓘ #FFFFFFMyPoints – " .. result[1].srp, plr, 255, 255, 0, true)
  2636. outputChatBox("Ⓘ #FFFFFFPrzegrany czas – " .. result[1].hours, plr, 255, 255, 0, true)
  2637. outputChatBox("Ⓘ #FFFFFFMinuty na duty – " .. result[1].worker, plr, 255, 255, 0, true)
  2638. outputChatBox("Ⓘ #FFFFFFData rejestracji – " .. result[1].registered, plr, 255, 255, 0, true)
  2639. outputChatBox("Ⓘ #FFFFFFSerial – " .. result[1].register_serial, plr, 255, 255, 0, true)
  2640. outputChatBox("Ⓘ #FFFFFFKonto premium do – " .. result[1].premiumdate, plr, 255, 255, 0, true)
  2641. end
  2642. end)
  2643.  
  2644. addCommandHandler("paliwo", function(plr,cmd)
  2645. if getAdmin(plr) then
  2646. local veh=getPedOccupiedVehicle(plr)
  2647. if not veh then
  2648. outputChatBox("Ⓘ #FFFFFFMusisz znajdować się w pojeździe, który chcesz zatankować.", plr, 255, 255, 0, true)
  2649. return
  2650. end
  2651. setElementData(veh, "vehicle:fuel", 100)
  2652. outputChatBox("✔ #FFFFFFPomyślnie zatankowałeś(aś) pojazd.", plr, 0, 255, 0, true)
  2653. end
  2654. end)
  2655.  
  2656. addCommandHandler("daj.bron", function(plr,cmd,cel,bron,amunicja)
  2657. if getAdmin(plr,3) then
  2658. if not cel or not bron then
  2659. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /daj.bron <nick/ID> <bron> <amunicja>", plr, 255, 255, 0, true)
  2660. return
  2661. end
  2662. if not tonumber(bron) then
  2663. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /daj.bron <nick/ID> <bron> <amunicja>", plr, 255, 255, 0, true)
  2664. return
  2665. end
  2666. if not amunicja then local amunicja = 10 end
  2667. local target=exports["pystories-core"]:findPlayer(plr,cel)
  2668. if not target then
  2669. outputChatBox("✘ #FFFFFFNie znaleziono podanego gracza.", plr, 255, 0, 0, true)
  2670. return
  2671. end
  2672. if giveWeapon(target,bron,amunicja,true) then
  2673. outputChatBox("✔ #FFFFFFPomyślnie nadałeś(aś) broń – "..getWeaponNameFromID(bron).." dla – "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""), plr, 0, 255, 0, true)
  2674. outputChatBox("✔ #FFFFFFPomyślnie otrzymałeś(aś) broń – "..getWeaponNameFromID(bron).." od – "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), target, 0, 255, 0, true)
  2675. else
  2676. outputChatBox("✘ #FFFFFFPodałeś(aś) nieprawidłową wartość.", plr, 255, 0, 0, true)
  2677. end
  2678. end
  2679. end)
  2680.  
  2681. addCommandHandler("qkx.id-broni",function(plr,cmd)
  2682. for i=0,46 do
  2683. outputChatBox("Ⓘ #FFFFFF"..i.." – "..getWeaponNameFromID(i), plr, 255, 255, 0, true)
  2684. end
  2685. end)
  2686.  
  2687. addCommandHandler("cfix", function(plr, cmd, range)
  2688. if getAdmin(plr,3) or getAdmin(plr,2) then
  2689. if (not range) then
  2690. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /cfix <zasięg>", plr, 255, 255, 0, true)
  2691. return end
  2692. if not tonumber(range) then
  2693. outputChatBox("Ⓘ #FFFFFFPrawidłowe użycie – /cfix <zasięg>", plr, 255, 255, 0, true)
  2694. return end
  2695. range = tonumber(range)
  2696. if range <= 0 then
  2697. outputChatBox("✘ #FFFFFFPodano zbyt małą odległość.", plr, 255, 0, 0, true)
  2698. return end
  2699. if range > 200 then
  2700. outputChatBox("✘ #FFFFFFPodano zbyt dużą odległość.", plr, 255, 0, 0, true)
  2701. return end
  2702. local x,y,z = getElementPosition(plr)
  2703. local cub = createColSphere(x,y,z,range)
  2704. local pojazdy = getElementsWithinColShape( cub, "vehicle")
  2705. if #pojazdy == 0 then
  2706. outputChatBox("✘ #FFFFFFW pobliżu nie znajduje się żaden pojazd.", plr, 255, 0, 0, true)
  2707. return end
  2708. for i,pojazd in ipairs(pojazdy) do
  2709. fixVehicle(pojazd)
  2710. end
  2711. setTimer(destroyElement,5000,1,cub)
  2712. end
  2713. end)
Add Comment
Please, Sign In to add comment