CLEO Help [Help] "/PmAll"

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Someone can fix that??  :imoverit:
Code:
{$CLEO .cs}
thread "Pa0NeiX"
0B34: samp register_client_command "pmall" to_label @ACTION__PM_ALL

:MAIN
wait 0
goto @MAIN

:ACTION__PM_ALL
wait 0
SAMP.IsCommandTyped(1@)
if
0AD4: 0@ = scan_string 1@ format "%s" 22@
jf @USAGE
for 30@ = 0 to 1000
if 
SAMP.IsPlayerConnected(30@)
then
21@ = SAMP.GetSAMPPlayerIDByActorHandle(30@)
0AF9: "/pm %d %s" 21@ 22@
end
end
SAMP.CmdRet()
goto @MAIN

:USAGE
wait 0
0AF8: "Usage: /PmAll [Message]" 0xFFFFFF 
SAMP.CmdRet()
goto @MAIN
 

Rellex

Member
Joined
Sep 15, 2014
Messages
17
Reaction score
0
Code:
#NoEnv
SendMode, Input
#IfWinActive GTA:SA:MP


playerid := 0 ; Starts at this ID
loops   := 500 ; End ID (Might want to edit this)


F10::
Send, {Enter}
Loop, %loops%
{
	if(playerid < loops)
	{
		Send, t/pm %playerid% ENTER MESSAGE{Enter}
		Sleep, 1000 ; Milliseconds before the next message is send
		playerid ++ 1
	}
	else
	{
		break
	}
}
return

; Stops script
F11::
Reload
Send, ^a{BS}{Esc}
return

; Closes script
F12::
ExitApp

Eh' this is my AHK bind...
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
{$CLEO .cs}
0000:

REPEAT
    WAIT 100
UNTIL SAMP.Available()
0B34: regcmd "pmall" @cmd

WHILE TRUE
    WAIT 0
END

:cmd
0B35: 0@
0C17: 1@ = 0@
IF 1@ > 1
THEN 0AB1: @pmall 1 0@
END
0B43: cmdret

:pmAll
wait 0
FOR 1@ = 0 TO 999
    IF 0B23:  samp is_player_connected 1@
    THEN 0AF9: "/pm %d %s" 1@ 0@
    END
END
0AB2: ret 0
 
Status
Not open for further replies.
Top