0B34: samp register_client_command "mycmd" to_label @cmd_mycmd
//-------------MAIN---------------
0000: NOP
0B34:samp register_client_command "backup" to_label @NONAME_2
0@ = 0
:NONAME_1
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_name_of_zone 1@ 2@ 3@ store_to 4@
:NONAME_2
wait 0
if
0@=1
then
wait 10000
0AF9: samp say_msg "/pr i need help at 4@"
jump @NONAME_2
Husnain said:PHP:0B34: samp register_client_command "mycmd" to_label @cmd_mycmd
Don't use 0AF9 opcode. It just automatically type the command in the chat. Use 0AF9 opcode to register the command
"mycmd" is the command. You can change it whatever you like and "@cmd_mycmd" is the label where the mod/process will be implement (start).
bladero said:Change 4@ to string variable, use 0C8F: samp process_chat_input " " instead of say_msg, add cmdret on end of the :NONAME_2 and create loop instead of useing 0@ = 0 nad 0@ = 1
{$CLEO .cs}
0000:
wait 0
repeat
wait 0
until 0AFA: is_samp_available
0B34: samp register_client_command "backup" to_label @backup
while true
wait 0
end
:backup
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_zone_at 1@ 2@ 3@ nameA_to s$8216
0C8F: samp process_chat_input "/pr i need help at %s" s$8216
0B43: samp cmd_ret
It not working, until /backup, it no workbladero said:
Code:{$CLEO .cs} 0000: wait 0 repeat wait 0 until 0AFA: is_samp_available 0B34: samp register_client_command "backup" to_label @backup while true wait 0 end :backup Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@) 0843: get_zone_at 1@ 2@ 3@ nameA_to s$8216 0C8F: samp process_chat_input "/pr i need help at %s" s$8216 0B43: samp cmd_ret
try now
wisraul said:help me
hypnotic said:wisraul said:help me
Why spamming and begging for help? learn how to code or learn the basic's first.. before you start to beg it's stupid. :imoverit: