Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. function straz_pozarna(plr,commands, ...)
  2. local msg = table.concat ( {...}, " " )
  3. outputChatBox("* Wezwałeś(aś) Państwową Straż Pożarną !",plr,255,255,255)
  4. for k,v in ipairs(getElementsByType("player")) do
  5. if getElementData(v, "player:faction")=="PSP" then
  6. outputChatBox( "* "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..", zadzwonił po Was, powód: "..msg:gsub("#%x%x%x%x%x%x","")..". ",v)
  7. end
  8. end
  9. end
  10. addCommandHandler("wezwij.psp",straz_pozarna)
  11.  
  12. function pogotowie(plr,commands, ...)
  13. local msg = table.concat ( {...}, " " )
  14. outputChatBox("* Wezwałeś(aś) Pogotowie Ratunkowe !",plr,255,255,255)
  15. for k,v in ipairs(getElementsByType("player")) do
  16. if getElementData(v, "player:faction")=="SAMC" then
  17. outputChatBox( "* "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..", zadzwonił po Was, powód: "..msg:gsub("#%x%x%x%x%x%x","")..". ",v)
  18. end
  19. end
  20. end
  21. addCommandHandler("wezwij.samc",pogotowie)
  22.  
  23. function policja(plr,commands, ...)
  24. local msg = table.concat ( {...}, " " )
  25. outputChatBox("* Wezwałeś(aś) Policje !",plr,255,255,255)
  26. for k,v in ipairs(getElementsByType("player")) do
  27. if getElementData(v, "player:faction")=="SAPD" then
  28. outputChatBox( "* "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..", zadzwonił po Was, powód: "..msg:gsub("#%x%x%x%x%x%x","")..". ",v)
  29. end
  30. end
  31. end
  32. addCommandHandler("wezwij.sapd",policja)
  33.  
  34. function tsa(plr,commands, ...)
  35. local msg = table.concat ( {...}, " " )
  36. outputChatBox("* Wezwałeś(aś) TAXI !",plr,255,255,255)
  37. for k,v in ipairs(getElementsByType("player")) do
  38. if getElementData(v, "player:faction")=="TSA" then
  39. outputChatBox( "* "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..", zadzwonił po Was, powód: "..msg:gsub("#%x%x%x%x%x%x","")..". ",v)
  40. end
  41. end
  42. end
  43. addCommandHandler("wezwij.tsa",tsa)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement