DickInferno
Member
- Joined
- Dec 25, 2013
- Messages
- 8
- Reaction score
- 0
Hey
Igotthiscleofromhere: http://ugbase.eu/releases-6/nickchanger-cs-0-3z/
I want to make it possible to change the ip...
Example: /nick NICKNAME IP PORT
How can I do that?
Script so far(not from me)
I only need to know how to get multiple params from the command.
Thanks alot(sry for my bad english I am not so gut ;D)
Edit: I am even not able to compile it...woooow whats wrong? "samp.Base()" is an unknown expression...
naild it! now able
Igotthiscleofromhere: http://ugbase.eu/releases-6/nickchanger-cs-0-3z/
I want to make it possible to change the ip...
Example: /nick NICKNAME IP PORT
How can I do that?
Script so far(not from me)
Code:
{$CLEO}
if
not 29@ = samp.Base()
then
end_thread
else
while not samp.Available()
wait 0
end
end
0B34: samp register_client_command "nick" to_label @nick
while true
wait 0
end
:nick
wait 0
if 0B35: samp 1@ = get_last_command_params
then
0B29: samp set_local_name "%s" 1@
0ACD: show_text_highpriority "~r~Your nick change" time 1000
wait 100
0ACD: show_text_highpriority "~b~ Wait for disconnect ..." time 1000 1@
0AC8: 3@ = allocate_memory_size 32
0AC8: 4@ = allocate_memory_size 4
0C11: memset destination 3@ value 0 size 32
0C11: memset destination 4@ value 0 size 4
SAMP.GetCurrentServerAddress(3@, 4@)
wait 100
SAMP.Disconnect(0)
0ACD: show_text_highpriority "~b~ Restart" time 20
wait 0
SAMP.ConnectToServer(3@, 4@)
0AC9: free_allocated_memory 3@
0AC9: free_allocated_memory 4@
0ACD: show_text_highpriority "~w~ Restart ~r~ sucesfully" time 2000 1@
end
Samp.CmdRet()
I only need to know how to get multiple params from the command.
Thanks alot(sry for my bad english I am not so gut ;D)
naild it! now able