Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. $~Enter::
  2. if (isInChat() && !isDialogOpen())
  3. {
  4. Sleep 170
  5. dwAddress := dwSAMP + 0x12D8F8
  6. chatInput := readString(hGTA, dwAddress, 256)
  7. Sleep, 30
  8. ;первая команда
  9. if chatInput contains /win
  10. {
  11. RegExMatch(chatInput, "i)^(.*)/win", ps)
  12. If (ps1!="")
  13. {
  14. ps := []
  15. return
  16. }
  17. ps := []
  18. RegExMatch(chatInput, "i)^/win ([0-9]+)", p)
  19. if p1 =
  20. {
  21. AddChatMessageEx("{FFFFFF}", "Введите команду /win {FFFF00}[id].")
  22. return
  23. }
  24. if p1 !=
  25. {
  26. SendChat("/n LV | Победил " getPlayerNameById (p) ". Жду в больнице г.Лас-Вентурас!")
  27. }
  28. }
  29. {
  30. if chatInput contains /his
  31. {
  32. RegExMatch(chatInput, "i)^(.*)/his", ps)
  33. If (ps1!="")
  34. {
  35. ps := []
  36. return
  37. }
  38. ps := []
  39. RegExMatch(chatInput, "i)^/his ([0-9]+)", p)
  40. if p1 =
  41. {
  42. AddChatMessageEx("{FFFFFF}", "Введите команду /his {FFFF00}[id].")
  43. return
  44. }
  45. if p1 !=
  46. {
  47. SendChat("/history " getPlayerNameById(p)"")
  48. }
  49. }
  50.  
  51. }
  52. }
  53. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement