CLEO Help SAMPFUNCS License | with OPCODE

CLEO related
Status
Not open for further replies.

Dtkyss

Member
Joined
Oct 22, 2016
Messages
20
Reaction score
0
Hello guys!

I dont know how to start to write a "serial" license. example: if i write in sannybuilder for a name, like DesK, if i connect to samp with DesKK the script is not working, when I connect with DesK it is working.
Can anyone help me?
----------------------------------------------
0B2B: samp 29@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 28@ = get_player_nickname 29@
if
0C14: strcmp string1 28@ string2 "yournickhere"
then
----------------------------------------------
my friend says me this, but it is not finished.
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,493
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
PHP:
REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 1@ = get_player_nickname 0@
IF
8C14: strcmp string1 1@ string2 "DesK"
THEN
    0AF8: samp add_message_to_chat "Hey %s! You dont have a license!" color -1 1@
    004E: end_thread
END



WHILE TRUE
    WAIT 0
END
 
Status
Not open for further replies.
Top