Jump to content

[CLEO] Auto skin changer


 Share

Recommended Posts

15 Second is kinda short. Because before 15 seconds have passed, you have to enter the password to log in and the character should be spawned already. instead, you can use [/lskin].

 

You are able to change wait 15000 to wait 20000 / wait 25000, (It all depends on you).

You also can change the skin ID from the "const" section.

 

{$CLEO .cs}

thread "AutoSkin" 

repeat 
wait 609 
until 0AFA: is_samp_structures_available

0B34: "lskin" @Load_my_recently_skin

if 0@ == 0
then
    wait 15000
    1@ = 1
end

const
My_Skin = 270
end

While True
wait 0

if 1@ == 1
then
    Model.Load(My_Skin)
    if Model.Available(My_Skin)
    then
        09C7: change_player $PLAYER_CHAR model_to My_Skin 
        Player.CanMove($PLAYER_CHAR) = True
        Model.Destroy(My_Skin)
        chatmsg "{FFFFFF}The skin has been changed successfully." -1
        0@ = 1
        1@ = 0
    end
end

END

:Load_my_recently_skin 
Model.Load(My_Skin)
if Model.Available(My_Skin)
then
    09C7: change_player $PLAYER_CHAR model_to My_Skin 
    Player.CanMove($PLAYER_CHAR) = True
    Model.Destroy(My_Skin)
    chatmsg "{FFFFFF}The skin has been changed successfully." -1
    0@ = 1
    1@ = 0
end
SAMP.CmdRet() 

 

Link to comment
Share on other sites

  • D J C changed the title to [CLEO] Auto skin changer

@LLstylish.NSFW add in a loop the next function

10@ = Actor.Health($PLAYER_ACTOR)

if 10@ <= 0
then
    wait 4000
    Model.Load(My_Skin)
    if Model.Available(My_Skin)
    then
        09C7: change_player $PLAYER_CHAR model_to My_Skin 
        Player.CanMove($PLAYER_CHAR) = True
        Model.Destroy(My_Skin)
    end
end

EDIT: If timer duration is too short, increase at 5000/6000.

Edited by Tupi
Link to comment
Share on other sites

  • D J C 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.