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

Joined
Jan 6, 2019
Messages
22
Likes
0
Points
6
#1
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

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#3
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 [email protected] Text [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then           
    0A8E: [email protected] = [email protected] + 0x26E9FC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0x14E5 // command
    0A8E: [email protected] = [email protected] + 0x1565 // text
end
0AB2: 2 [email protected] [email protected]
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:
Top