Multi Greeting Problem

alborosie

Active member
Joined
Aug 16, 2017
Messages
67
Reaction score
3
Hi. I make a command in my CMD who greets the players from the clan first, then the players from the faction.
The problem is it's just greeting the clan, not and the faction. Anyone know why?

Code:
0B34: samp register_client_command "hi" to_label @cmd_8

:cmd_8
SAMP.IsCommandTyped(20@)
    say "/c Hello!"
    say "/f Hello!"
SAMP.CmdRet()
 
Last edited:

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,161
Solutions
5
Reaction score
894
Location
Lithuania
From old Request
PHP:
{$CLEO .cs}

0000: NOP

0662: "Salut all by dawidov."

Thread "Salut all by dawidov. For Nephrite"

wait 10000

0B34: samp register_client_command "salutall" to_label @cmd

chatmsg "{FF3C00}Salut {FF3C00}All {FF3C00}By {FF3C00}dawidov. {FF3C00}for {FF3C00}Nephrite.ro" -1


while true
wait 0

if
0@ == true // if send cmd is enabled then..
then
    0AF9: samp say_msg "/c Salut !"
    0AF9: samp say_msg "/f Salut !"
    0AF9: samp say_msg "/wt Salut !"
    0@ = false // disable send cmd
end

end

:cmd
0@ = true  // enable send cmd
0B43: samp cmd_ret
 

alborosie

Active member
Joined
Aug 16, 2017
Messages
67
Reaction score
3
From old Request
PHP:
{$CLEO .cs}

0000: NOP

0662: "Salut all by dawidov."

Thread "Salut all by dawidov. For Nephrite"

wait 10000

0B34: samp register_client_command "salutall" to_label @cmd

chatmsg "{FF3C00}Salut {FF3C00}All {FF3C00}By {FF3C00}dawidov. {FF3C00}for {FF3C00}Nephrite.ro" -1


while true
wait 0

if
0@ == true // if send cmd is enabled then..
then
    0AF9: samp say_msg "/c Salut !"
    0AF9: samp say_msg "/f Salut !"
    0AF9: samp say_msg "/wt Salut !"
    0@ = false // disable send cmd
end

end

:cmd
0@ = true  // enable send cmd
0B43: samp cmd_ret

don't work
 

alborosie

Active member
Joined
Aug 16, 2017
Messages
67
Reaction score
3
From old Request
PHP:
{$CLEO .cs}

0000: NOP

0662: "Salut all by dawidov."

Thread "Salut all by dawidov. For Nephrite"

wait 10000

0B34: samp register_client_command "salutall" to_label @cmd

chatmsg "{FF3C00}Salut {FF3C00}All {FF3C00}By {FF3C00}dawidov. {FF3C00}for {FF3C00}Nephrite.ro" -1


while true
wait 0

if
0@ == true // if send cmd is enabled then..
then
    0AF9: samp say_msg "/c Salut !"
    0AF9: samp say_msg "/f Salut !"
    0AF9: samp say_msg "/wt Salut !"
    0@ = false // disable send cmd
end

end

:cmd
0@ = true  // enable send cmd
0B43: samp cmd_ret


maybe i messed up with a setting from sanny builder
 
Top