Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Include SAMP-UDF.ahk
- #IfWinActive GTA:SA:MP
- $~Enter::
- if (isInChat() && !isDialogOpen())
- {
- Sleep 170
- dwAddress := dwSAMP + 0x12D8F8
- chatInput := readString(hGTA, dwAddress, 256)
- Sleep, 30
- ;первая команда
- if chatInput contains /vig
- {
- RegExMatch(chatInput, "i)^(.*)/vig", ps)
- If (ps1!="")
- {
- ps := []
- return
- }
- ps := []
- RegExMatch(chatInput, "i)^/vig ([0-9]+) (.*)", p)
- if p2 =
- {
- AddChatMessageEx("{FFFFFF}", "Введите команду /vig {FFFF00}[id].")
- return
- }
- if p2 !=
- {
- SendChat("/n LVPD to all: Выдал выговор жетону " p1 ". По причине: " p2)
- Return
- }
- }
- ;вторая команда
- if chatInput contains /nom
- {
- RegExMatch(chatInput, "i)^(.*)/nom", ps)
- If (ps1!="")
- {
- ps := []
- return
- }
- ps := []
- RegExMatch(chatInput, "i)^/nom ([0-9]+)", p)
- if p1 =
- {
- AddChatMessageEx("{FFFFFF}", "Введите команду /nom {FFFF00}[id].")
- return
- }
- if p1 !=
- {
- ;Тут код пиши
- }
- }
- ;остальные команды тут писать
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement