Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $~Enter::
- if (isInChat() && !isDialogOpen())
- {
- Sleep 170
- dwAddress := dwSAMP + 0x12D8F8
- chatInput := readString(hGTA, dwAddress, 256)
- Sleep, 30
- ;первая команда
- if chatInput contains /win
- {
- RegExMatch(chatInput, "i)^(.*)/win", ps)
- If (ps1!="")
- {
- ps := []
- return
- }
- ps := []
- RegExMatch(chatInput, "i)^/win ([0-9]+)", p)
- if p1 =
- {
- AddChatMessageEx("{FFFFFF}", "Введите команду /win {FFFF00}[id].")
- return
- }
- if p1 !=
- {
- SendChat("/n LV | Победил " getPlayerNameById (p) ". Жду в больнице г.Лас-Вентурас!")
- }
- }
- {
- if chatInput contains /his
- {
- RegExMatch(chatInput, "i)^(.*)/his", ps)
- If (ps1!="")
- {
- ps := []
- return
- }
- ps := []
- RegExMatch(chatInput, "i)^/his ([0-9]+)", p)
- if p1 =
- {
- AddChatMessageEx("{FFFFFF}", "Введите команду /his {FFFF00}[id].")
- return
- }
- if p1 !=
- {
- SendChat("/history " getPlayerNameById(p)"")
- }
- }
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement