CLEO Help Help with /sms id command add deelay

CLEO related
Status
Not open for further replies.

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
{$CLEO}
{$INCLUDE SF}
0000:

repeat
wait 0
until SAMP.Available()

alloc 8@ 256
0C11: memset destination 8@ value 0 size 256

alloc 17@ 256
0C11: memset destination 17@ value 0 size 256

14@ = 0

0C11: memset destination 8@ value 0 size 256

0BE1: raknet setup_outcoming_rpc_hook @out_phone
0BE3: raknet setup_incoming_rpc_hook @chat_number

while true
wait 0

if and
14@ == 1
32@ == 60000
then
14@ = 0
end

ut_phone
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SERVERCOMMAND
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT
alloc 3@ 1024
0C11: memset destination 3@ value 0 size 1024
0BE8: raknet bit_stream 1@ read_array 3@ size 2@
0C1E: array 3@ element 2@ el_size 1 = 0

if 0C18: $NOT_STRING = strstr string1 3@ string2 "/sms"
then
alloc 15@ 128
alloc 13@ 128
0AA7: call 0x8220AD num_params 4 pop 4 13@ 15@ "/sms %s %s" 3@ 11@
if 11@ == 2
then
0C17: 16@ = strlen 15@
if 16@ <= 3
then
0AA5: call 0x8220AD num_params 4 pop 4 7@v 4@v "/sms %d %n" 3@
005a: 7@ += 3@
if SAMP.IsPlayerConnected(4@)
then
if 003b: 9@ == 4@
then
say "/sms %s %s" 8@ 7@
else
say "/number %d" 4@
6@ = 1
end
0BE0: raknet hook_ret false
end
end
end
free 15@
free 13@
end

Hello i made this script weeks ago it works like a charm. But now the server got an update (anti spam) and i need to ad an waiting time like 5 seconds between /sms %s %s and /number %d

How can i add 5 seconds delay between this 2 commands?

i tryed this :

then
wait 5000
say "/sms %s %s" 8@ 7@
else
wait 5000
say "/number %d" 4@

and is not taking efect,.

when i use /sms id in game the server take only the /number %d command. the /sms %s %s is not working due to spam reason from the server update..

Can you help me? Maybe add a deelay or something
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
{$CLEO}
{$INCLUDE SF}
0000:

repeat
wait 0
until SAMP.Available()

alloc 8@ 256
0C11: memset destination 8@ value 0 size 256

alloc 17@ 256
0C11: memset destination 17@ value 0 size 256

14@ = 0

0C11: memset destination 8@ value 0 size 256

0BE1: raknet setup_outcoming_rpc_hook @out_phone
0BE3: raknet setup_incoming_rpc_hook @chat_number

while true
wait 0

if and
14@ == 1
32@ == 60000
then
14@ = 0
end

ut_phone
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SERVERCOMMAND
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT
alloc 3@ 1024
0C11: memset destination 3@ value 0 size 1024
0BE8: raknet bit_stream 1@ read_array 3@ size 2@
0C1E: array 3@ element 2@ el_size 1 = 0

if 0C18: $NOT_STRING = strstr string1 3@ string2 "/sms"
then
alloc 15@ 128
alloc 13@ 128
0AA7: call 0x8220AD num_params 4 pop 4 13@ 15@ "/sms %s %s" 3@ 11@
if 11@ == 2
then
0C17: 16@ = strlen 15@
if 16@ <= 3
then
0AA5: call 0x8220AD num_params 4 pop 4 7@v 4@v "/sms %d %n" 3@
005a: 7@ += 3@
if SAMP.IsPlayerConnected(4@)
then
if 003b: 9@ == 4@
then
say "/sms %s %s" 8@ 7@
else
say "/number %d" 4@
6@ = 1
end
0BE0: raknet hook_ret false
end
end
end
free 15@
free 13@
end

Hello i made this script weeks ago it works like a charm. But now the server got an update (anti spam) and i need to ad an waiting time like 5 seconds between /sms %s %s and /number %d

How can i add 5 seconds delay between this 2 commands?

i tryed this :

then
wait 5000
say "/sms %s %s" 8@ 7@
else
wait 5000
say "/number %d" 4@

and is not taking efect,.

when i use /sms id in game the server take only the /number %d command. the /sms %s %s is not working due to spam reason from the server update..

Can you help me? Maybe add a deelay or something


Wait xxx ms does not work inside both RPC/Packet Hook and CMD Hook. That is why adding delay on those part is not working... If you want the waiting time to work, you need to do those "say in chat" stuff at the "main while loop" instead on the hook labels...
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
i think is not here the problem. Now i found it.

see that :

if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:"
then
if 6@ == 1
then
alloc 5@ 256
0C11: memset destination 5@ value 0 size 256
0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

After server update, when i press /number id, it was changed from Number: to : Derrek's phoe number is 2342

And the mod is set to read the string "Number:"


Now.. if i edit the line if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:" in to 0C18: $NOT_STRING = strstr string1 27@ string2 "number is" the mod is not working anymore due to this line : 0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

How can i find the new num_params for the new text? can you make them or something? i think they are different now and there is the problem because the mod can't find anymore the "Number:" text in chat..

I hope you understand what im saying
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
i think is not here the problem. Now i found it.

see that :

if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:"
then
if 6@ == 1
then
alloc 5@ 256
0C11: memset destination 5@ value 0 size 256
0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

After server update, when i press /number id, it was changed from Number: to : Derrek's phoe number is 2342

And the mod is set to read the string "Number:"


Now.. if i edit the line if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:" in to 0C18: $NOT_STRING = strstr string1 27@ string2 "number is" the mod is not working anymore due to this line : 0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

How can i find the new num_params for the new text? can you make them or something? i think they are different now and there is the problem because the mod can't find anymore the "Number:" text in chat..

I hope you understand what im saying

Ok, how about we start from scratch... Tell me the step by step procedure of what you really want. I want a clear explanation so that readers can help you finish your objective towards your goal... I might create the script myself for you if your explanation is clear.
 

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
Sooo, what u did said?
Hello i made this script weeks ago
Pffffff... nice lie my friend, author speaking here: https://github.com/JaggerJam69/MyScripts/blob/master/smartphone_k.cs

If u did made this script u know that in RPC/callbacks u can't put wait.
But now the server got an update
If I know about what server ur talking about, then it got the anti-spam right from opening.

P.S.
it works like a charm.
Thanks, I appreciate the compliment!

@ajom he doesn't know anything in CLEO, the 0x8220AD is sscanf func and he do not know how use it.
 
Last edited:

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
Exactly...[/QUOTE]
Ok, how about we start from scratch... Tell me the step by step procedure of what you really want. I want a clear explanation so that readers can help you finish your objective towards your goal... I might create the script myself for you if your explanation is clear.

i want to make the mod works, the mod is for using /sms id
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
This is the script i made see attachaments, and only /reply command works. Before server got the update when i used the comand /number id the server answer was : Number: 3234

Now when i type the command /number id the server says : phone number is 3234.


So the mod is programmed to read the text "Number:" and then the mod will read the phone number from chat at will use it for the command /sms id.
But now the text "Number:" was changed due to the server update so the command /sms id will not work anymore because the mod can't anymore find the "Number text"

There is the line :

if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:"

There is the line where the mod get the mod number :

0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

So i need to remake that num_params : 0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@ and change the "%*[^:]: %*[^|]| %*[^:]: %s"
with the new corectly characters for the text : phone number is

But i dont know how to make again the num_params destionation.. Because :

If i change the line : if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:"

and i edit it like this : if 0C18: $NOT_STRING = strstr string1 27@ string2 "phone number is"

i will need to edit the 0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

Untill i edit those params the mod can't the new destination..

so what kind of paramas ( example : "%*[^:]: %*[^|]| %*[^:]: %s" ) should i use for the new text? or something..

See attachament the screen and picture from chat after the update. Before the update, the text was : Number:


@ajom


Also the command /call id is not working. Same as /sms id

when i use those mod commands the server says only : kallunda (3)'s phone number is 754786.

Because it can't find anymore the "Number:" in chat.. it was changed by the scripter in to : phone number is kallunda (3)'s phone number is 754786

I only need if you can edit this mod.. or if you can create another mod for using in game (samp) the command /sms id

and if you can add a deelay after the mod use command /number wait 5000 and then use command /sms (this is for when i use the command /sms id)
 

Attachments

  • New Text Document.txt
    5.1 KB · Views: 4
  • image_2020-11-27_063032.png
    image_2020-11-27_063032.png
    15.1 KB · Views: 9
Last edited:

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
i think is not here the problem. Now i found it.

see that :

if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:"
then
if 6@ == 1
then
alloc 5@ 256
0C11: memset destination 5@ value 0 size 256
0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

After server update, when i press /number id, it was changed from Number: to : Derrek's phoe number is 2342

And the mod is set to read the string "Number:"


Now.. if i edit the line if 0C18: $NOT_STRING = strstr string1 27@ string2 "Number:" in to 0C18: $NOT_STRING = strstr string1 27@ string2 "number is" the mod is not working anymore due to this line : 0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^:]: %*[^|]| %*[^:]: %s" 27@

How can i find the new num_params for the new text? can you make them or something? i think they are different now and there is the problem because the mod can't find anymore the "Number:" text in chat..

I hope you understand what im saying

I think this will work, I based my script according to what you said:
Code:
{
    Usage:
    /sms <player ID> <message>
    /call <player ID>
    /reply <message>

    Compatible to Normal Server Commands such as:
    /sms <phonenumber> <message>
    /call <phonenumber>
}

// ------------------------------------ Headers

{$CLEO}
{$INCLUDE SF}

// ------------------------------------ End of Headers

// ------------------------------------ Initialization
0000: communicate - by ajom

const
    TIMERA = 32@
    MODE = 31@
    PHONENUMBER = 30@
    PHONUMBERWASRECEIVED = 29@
    MESSAGE = 28@
    FULLMESSAGE = 27@
    REPLYNUMBER = 26@
end
MODE = 0 // 0 = do nothing , 1 = initiating sms , 2 = initiating call
PHONUMBERWASRECEIVED = false
alloc MESSAGE 256 // in chat you cannot exceed stringlength more than 256
alloc FULLMESSAGE 256 // in chat you cannot exceed stringlength more than 256

repeat
    wait 0
until SAMP.Available()

wait 5000
chatmsg "Communicate - by {00ff00}AJOM(Version Author), {00ffff}Credits:{ff00ff}AJOM(Original Script Creator)" 0xFFFFFF00

0B34: samp register_client_command "sms" to_label @initsms
0B34: samp register_client_command "call" to_label @initcall
0B34: samp register_client_command "reply" to_label @initreply

0BE3: raknet setup_incoming_rpc_hook @in_rpc

// ------------------------------------ end of Initialization

:mainloop // ------------------------------------ Main Loop
    wait 0
    if and
        MODE > 0 // not doing nothing
        PHONUMBERWASRECEIVED == true
        TIMERA > 5000 // 5 seconds lapses
    jf @mainloop // jf means jump if false

    if MODE == 1 // doing sms
    then
        0AD3: FULLMESSAGE = format "/sms %d %s" PHONENUMBER MESSAGE
        say FULLMESSAGE
        chatmsg "Debug: sms I said '%s'" -1 FULLMESSAGE
    else
        if MODE == 2 // doing call
        then
            0AD3: FULLMESSAGE = format "/call %d" PHONENUMBER
            say FULLMESSAGE
            chatmsg "Debug: call I said '%s'" -1 FULLMESSAGE
        else
        end
    end

    MODE = 0 // do nothing after the next iteration
    PHONUMBERWASRECEIVED = false
jump @mainloop // ------------------------------- End of Main Loop

// ------------------------------------ Interrupts and Callbacks

:initsms
    0B35: samp 0@ = get_last_command_params // gets "<player ID> <message>""
    0AA7: _sscanf 0x8220AD num_params 4 pop 4 2@v 1@v _format "%d %n" _string 0@ _issuccess 3@ // all parameters of 0x8220AD needs to be a pointer , 0@ holds the pointer of the message
    if 3@ == true // sscanf was successful
    then // now, 1@ has the player id, 2@ has an integer value which is the offset of the remaining string , respect to 0@
        0C8A: samp 3@ = get_max_player_id streamed_only false // get the ID of a player with the highest ID
        if 002D: 3@ >= 1@ // max player id existed >= inputted player id
        then
            0AD3: MESSAGE = format "/number %d" 1@
            say MESSAGE
            chatmsg "Debug: cmdsms I said '%s'" -1 MESSAGE
           
            005A: 2@ += 0@ // got the pointer of the remaining string
            0C13: strcpy destination MESSAGE source 2@ // copy and save the message string
            chatmsg "Debug: you input player:'%d' , message:'%s'" -1 1@ MESSAGE
       
            MODE = 1 // inform the mainloop that we will initiate sms
            PHONUMBERWASRECEIVED = false
            TIMERA = 0 // reset the 5 seconds timer
        else // normal server /sms <phonenumber> <message>
            005A: 2@ += 0@ // got the pointer of the remaining string
            0AD3: MESSAGE = format "/sms %d %s" 1@ 2@
            say MESSAGE
            chatmsg "Debug: serversms, I said '%s'" -1 MESSAGE
        end
    else chatmsg "AJOM: wrong SMS syntax, it must be '/sms <playerid or phonenumber> <message>'" 0xFFFF0000
    end
0B43: samp cmd_ret

:initcall
    0B35: samp 0@ = get_last_command_params // gets "<player ID>"
    if 0AD4: 2@ = scan_string 0@ format "%d" 1@
    then
        0C8A: samp 2@ = get_max_player_id streamed_only false // get the ID of a player with the highest ID
        if 002D: 2@ >= 1@ // max player id existed >= inputted player id
        then
            0AD3: MESSAGE = format "/number %d" 1@
            say MESSAGE
            chatmsg "Debug: cmdcall I said '%s'" -1 MESSAGE
            0A8C: write_memory MESSAGE size 1 value 0 virtual_protect 0 // null string(not necessary)
   
            MODE = 2 // inform the mainloop that we will initiate call
            PHONUMBERWASRECEIVED = false
            TIMERA = 0 // reset the 5 seconds timer
        else // normal server /call <phonenumber>
            0AD3: MESSAGE = format "/call %d" 1@
            say MESSAGE
            chatmsg "Debug: servercall, I said '%s'" -1 MESSAGE
        end
    else chatmsg "AJOM: wrong call syntax, it must be '/call <playerid or phonenumber>'" 0xFFFF0000
    end
0B43: samp cmd_ret

:initreply
    if 0B35: samp 0@ = get_last_command_params // gets "<message>""
    then
        0AD3: MESSAGE = format "/sms %d %s" REPLYNUMBER 0@
        say MESSAGE
        chatmsg "Debug: cmdreply I said '%s'" -1 MESSAGE
    else chatmsg "AJOM: wrong reply syntax, it must be '/reply <message>'" 0xFFFF0000
    end
0B43: samp cmd_ret

:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRCLIENTMESSAGE
then
    0BE5: raknet 0@ = get_hook_param PARAM_BITSTREAM
    0BEB: raknet bit_stream 0@ ignore_bits 32 // string color
    0BE7: raknet 1@ = bit_stream_read 0@ type BS_TYPE_INT // string length
    1@++
    alloc 2@ 1@
    1@--
    0BE8: raknet bit_stream 0@ read_array 2@ size 1@  // copy the message with the specified length from the bitstream to buffer
    0C1E: array 2@ element 1@ el_size 1 = 0  // terminate the buffer with a null character

    if 0C29: 0@ = stristr string1 2@ string2 "phone number is "
    then
        chatmsg "Debug: Detected Number, next is fetching number" -1
            // remove the red color
        if 0C2A: 0@ = strchr 0@ char 125 // char '}'
        then
            0@++
            //
            if 0C2A: 1@ = strchr 0@ char 123 // char '{'
            then
                0A8C: write_memory 1@ size 1 value 0 virtual_protect 0 // null terminator
       
                if 0AD4: 0@ = scan_string 0@ format "%d" 1@
                then
                    chatmsg "Debug: Received Number:%d" -1 1@
                    0085: PHONENUMBER = 1@
                    PHONUMBERWASRECEIVED = true
                end
            end
        end
    else
        if 0C29: 0@ = stristr string1 2@ string2 "SMS from "
        then
            chatmsg "Debug: somebody replied to you, fetching his phone number" -1
            if 0C2A: 0@ = strchr 0@ char 40 // char '('
            then
                0@++ // skip the '(' character
                if 0C2A: 1@ = strchr 0@ char 41 // char ')'
                then
                    0A8C: write_memory 1@ size 1 value 0 virtual_protect 0 // null terminator
                    if 0AD4: 0@ = scan_string 0@ format "%d" 1@
                    then
                        chatmsg "Debug: Reply Number is now:%d" -1 1@
                        0085: REPLYNUMBER = 1@
                    end
                end
            end
        end
    end

    free 2@
end
0BE0: raknet hook_ret true

// ------------------------------------ End of Interrupts and Callbacks

what this script will do:
  • When you type "/sms <playerid> <very long message>"
    1. cleo will autochat "/number <playerid>"
    2. cleo will wait for a server message with "phone number is " then get the PHONENUMBER
    3. after cleo finally retrieves the phone, cleo will wait for 5 seconds
    4. after 5 seconds, cleo will autochat "/sms <PHONENUMBER> <very long message>"
  • When you type "/call <playerid>"
    1. cleo will autochat "/number <playerid>"
    2. cleo will wait for a server message with "phone number is " then get the PHONENUMBER
    3. after cleo finally retrieves the phone, cleo will wait for 5 seconds
    4. after 5 seconds, cleo will autochat "/call <PHONENUMBER>"
  • When you type "/reply <very long message>"
    1. Retroactively, cleo detects server message with "SMS from " then get the REPLYNUMBER and save it for FUTURE USE
    2. As you trigger the sendreply command, cleo will autochat "/sms <REPLYNUMBER> <very long message>"

This Script also supports normal server command such as:
  • /sms <phonenumber> <message>
  • /call <phonenumber>
 

Attachments

  • 1606647078740.png
    1606647078740.png
    1.8 MB · Views: 10
  • 1606647121793.png
    1606647121793.png
    1.9 MB · Views: 9
  • 1606647152073.png
    1606647152073.png
    1.9 MB · Views: 9
  • 1606647171775.png
    1606647171775.png
    1.9 MB · Views: 9
Last edited:

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
@_Safa can you delete all innappropriate chat messages here, it is irrelevant for readers here to see these two dogs fighting here.

@JaggerJam chill out bro, just help him out with the problem.
@Derrekgamer I don't know how you code such thing. But I respect your claim if you really meant that you created it... And as principles of coding..
If the Code was originally created by others(can be multiple persons) and you just improved it. For god sake put CREDITS with all the names of the previous version creators of the script so that it is acceptable that you are creating a new version based on his script version.

I also don't like Code stealers who takes all credits. But it can be acceptable to some authors if you put their name on the credits...
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
it works !!! thank you very much man respect bro !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! love you

about that script// i made the /replay commands and the /sms %n %s %d params and someone helped me with this line :

0AA5: call 0x8220AD num_params 3 pop 3 5@ "%*[^(] %*[( ]%[^)]): %*s" 27@

Because i dont know about that params (%*[^(] %*[( ]%[^)]): %*s) i cant undestand anything of that so i requested help to change that params bro any way thanks so much !!!!!!!!!!!!! love you
 
Last edited:

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
@ajom , he will steal the script and will not put my credits in, I could help him if he doesn't said that HE wrote this, instead of "I found this and I want some help to edit it" He thinks if he copy-pasted from me, then he made it... Even the variables are identical. I love to help others to understand how to work in CLEO, but if the person doesn't know even how to format a text and creates hooks and says that he made it this triggers me. If he will post /replay command here, it will be exactly what I wrote..
 

Derrekgamer

Active member
Joined
Oct 26, 2020
Messages
93
Reaction score
1
Location
Grecee
@ajom

can you make it to work only with the 0-999 id? because the script takes all the numbers as player id and the comand /sms number is not working anymore.. so make the mod like that : any command /sms 2222 (up to 4 numbers ) will pause the mod and will work with the servers default command

hmm hard again to explain

The mod should work only with 0-999 id, not up to 999. Because is a bug.

Can you update pls and add this limit

for example : If i tipe /sms 232 text the mod works and sent the text message to the 232 id

But if i type /sms 2331 text (up to 4 numbers) the mod will stop working and will let the server doing that command

so the mod will work only with max 3 numbers to get player id. Not more than 3

Another example :

if i use /number id the server say :

Robii 's phone number is 8404.

And when i use /sms 8404 text the mod says that :

Invalid player specified.

So add a limit where the mod works only with 0-999 (player id)


/////////////////////////////////////////////////////

Also the command /call id is not working fine,. if i use call 27 (id 27) it will call id 1. else if i use any other id, the script call only the id 1 player server
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
@ajom

can you make it to work only with the 0-999 id? because the script takes all the numbers as player id and the comand /sms number is not working anymore.. so make the mod like that : any command /sms 2222 (up to 4 numbers ) will pause the mod and will work with the servers default command

hmm hard again to explain

The mod should work only with 0-999 id, not up to 999. Because is a bug.

Can you update pls and add this limit

for example : If i tipe /sms 232 text the mod works and sent the text message to the 232 id

But if i type /sms 2331 text (up to 4 numbers) the mod will stop working and will let the server doing that command

so the mod will work only with max 3 numbers to get player id. Not more than 3

Another example :

if i use /number id the server say :

Robii 's phone number is 8404.

And when i use /sms 8404 text the mod says that :

Invalid player specified.

So add a limit where the mod works only with 0-999 (player id)


/////////////////////////////////////////////////////

Also the command /call id is not working fine,. if i use call 27 (id 27) it will call id 1. else if i use any other id, the script call only the id 1 player server

Script Updated according to what you said... Now you can either type:
  • /sms <player ID> <message> or /sms <phonenumber> <message>
  • /call <player ID> or /call <phonenumber>
 
Status
Not open for further replies.
Top