Jump to content

[Problema] sanny builder


truekrv
 Share

Recommended Posts

  • Descriere problema: cand incerc sa intru pe server imi face spam cu textul 'easy instructor successfully loaded.', cum as putea rezolva aceasta problema?
  • Poze / Video (optional): -
  • Cod (sursa pe baza caruia sa ajutam, daca e cazul): mai jos
  • Alte precizări: - 

 

 

Spoiler

{$CLEO .cs}

0000: NOP 

:test
wait 0 
   SAMP.Available
else_jump @test 
gosub @chatmsg

:success
wait 0 
chatmsg "{ff0000}easy instructor successfully loaded." -1
wait 2500

0B34: samp register_client_command "wl" to_label @licgun
0B34: samp register_client_command "fl" to_label @licfly
0B34: samp register_client_command "bl" to_label @licboat

0AB1: call_scm_func @chatmsg 0


:cmd_39
wait 0
jump @cmd_39

:licgun
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/givelicence %s weapon" 1@

else
    print "~y~/wl <id>" 2000
end
SAMP.CmdRet()

:licfly
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/givelicence %s fly" 1@

else
    print "~y~/wl <id>" 2000
end
SAMP.CmdRet()

:licboat
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/givelicence %s boat" 1@

else
    print "~y~/wl <id>" 2000
end
SAMP.CmdRet()

:chatmsg
if 
8AAB:   not file_exists "CLEO\easy instructor.cs" 
else_jump @success 
SAMP.Disconnect(0)
wait 3000 
chatmsg "--------------------------------#E.I.---------------------------------" -1 
chatmsg "{FFFFFF}[CLEO] {858585} easy instructor.cs {FFFFFF}a fost redenumit!" -1
chatmsg "{FFFFFF}Sau nu se afla in folderul [CLEO]" -1 
chatmsg "{FFFFFF}El nu va functiona, pana nu il redenumiti ca inainte!" -1 
chatmsg "--------------------------------#E.I.---------------------------------" -1 
0A93: end_custom_thread

 

Edited by truekrv
Link to comment
Share on other sites

Salut @ truekrv , rezolvarea e simpla:

 

0B34: samp register_client_command "wl" to_label @licgun
0B34: samp register_client_command "fl" to_label @licfly
0B34: samp register_client_command "bl" to_label @licboat

0AB1: call_scm_func @chatmsg 0 // scoate asta

Link to comment
Share on other sites

10 hours ago, Nic said:

Salut @ truekrv , rezolvarea e simpla:

 

0B34: samp register_client_command "wl" to_label @licgun
0B34: samp register_client_command "fl" to_label @licfly
0B34: samp register_client_command "bl" to_label @licboat

0AB1: call_scm_func @chatmsg 0 // scoate asta

Multumesc frumos 🙏
Se poate T/C.

Link to comment
Share on other sites

On 7/27/2022 at 10:41 PM, truekrv said:

Multumesc frumos 🙏
Se poate T/C.

 

Daca mai ai alte probleme deschide un alt topic, you're welcome. T/C

Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.