Jump to content

Problema script sanny


dadu
 Share

Recommended Posts

{$CLEO .cs}
{$CLEO}
{$USE CLEO}
{$USE CLEO+}
{$USE file}
{$USE bitwise}
{$USE newOpcodes}
{$USE INI}
0000:
repeat
wait 0
until 0afa:

0b34: "fr" @fr

0B34: samp register_client_command "fr" to_label @fr

:fr
SAMP.IsCommandTyped(20@)
if
say "/frisk %s"
say "/confiscate %s drugs"
else 
chatmsg "Jucatorul nu este conectat"
end
SAMP.CmdRet 

0A93: terminate_this_custom_script

 

Incerc sa fac un mod in care folosind comanda /fr id, individul primeste /frisk si /confiscate id drugs in acelasi timp, este legala asta din moment ce si altii din factiunea mea o folosesc si nu au fost sanctionati folosind acest mod desi au primit multe posturi legate de asta.

Link to comment
Share on other sites

This may help you:

 

{$CLEO .cs}

0000:
repeat
wait 0
until 0AFA: 

if 8AF7: get_samp_base_to 0@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available 

0B34: samp register_client_command "fr" to_label @fr

:looper
wait 0 
jump @looper //To avoid crash

:fr
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/frisk %s" 1@
    0AF9: samp say_msg "/confiscate %s drugs" 1@
else
    chatmsg "Syntax: /fr <id>" -1
end
SAMP.CmdRet

 

Link to comment
Share on other sites

Salut,

 

O sa iti las mai jos o versiune a lui DJC doar ca mai optimizata, deoarece in versiunea lui daca exista 2 sau mai multi jucatori cu acelasi nume nu mai poti folosi comanda + functioneaza doar daca ai SAMPFUNCS.

 

{$CLEO}

repeat
wait 50
until 0AFA:

0B34: "fr" @fr

while true
wait 0
end

:fr
0B35: 0@
if 0AD4: 33@ = scan_string 0@ format "%d" 1@
then
       if 0B23: 1@
       then
              say "/frisk %d" 1@
              say "/confiscate %d drugs" 1@
       else chatmsg "Jucatorul nu este valid!" -1
       end
else chatmsg "Foloseste: /fk <PlayerID>" -1
end
cmdret

 

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.