CLEO Help [REQ] Mod to shorten a server command.

CLEO related
Status
Not open for further replies.

Cornysz

Member
Joined
Jan 6, 2019
Messages
22
Reaction score
0
Hello guys, so recently i play RP server with 0.3.7 R4 SA-MP. So, the server has some command that i using frequently, it's pretty "long", so that i want to shorten the CMD.
So for example, the server has command /givemedicine [ID] olat [quantity] ( [ ] means parameter) and then, what i want is mod that shorten the command so i can only write /olat [ID] (quantity = 1).
PS : The SA-MP version is not supported with SAMPFUNCS, so the mod should with .cs format.

Thank you in advance!
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,133
Solutions
5
Reaction score
885
Location
Lithuania
With this you can create not exist command, server says command which you enter not exist, but code still work.
PHP:
:GetLastSentTextFromChatBox
{
    0.3.7 - R4
    0AB1: @GetLastSentTextFromChatBox 0 _Returned: Command 0@ Text 1@
}
if 0AA2: 2@ = "samp.dll"
then           
    0A8E: 3@ = 2@ + 0x26E9FC
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    0A8E: 4@ = 3@ + 0x14E5 // command
    0A8E: 5@ = 3@ + 0x1565 // text
end
0AB2: 2 4@ 5@
Take look at this , here is small part of code which you can use.
http://ugbase.eu/index.php?threads/collection.21288/page-13#post-127579
 
Last edited:

tieuthienthan

Active member
Joined
Nov 6, 2019
Messages
43
Reaction score
10
Location
Vietnam
With this you can create not exist command, server says command which you enter not exist, but code still work.
PHP:
:GetLastSentTextFromChatBox
{
    0.3.7 - R4
    0AB1: @GetLastSentTextFromChatBox 0 _Returned: Command 0@ Text 1@
}
if 0AA2: 2@ = "samp.dll"
then         
    0A8E: 3@ = 2@ + 0x26E9FC
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    0A8E: 4@ = 3@ + 0x14E5 // command
    0A8E: 5@ = 3@ + 0x1565 // text
end
0AB2: 2 4@ 5@
Take look at this , here is small part of code which you can use.
http://ugbase.eu/index.php?threads/collection.21288/page-13#post-127579
thanks it works
 
Status
Not open for further replies.
Top