JobSkin
#2

You need to save the old skin in the player database
Here is an example. Don't forget to edit it.
PHP код:
#define Skin 30 //This is the skin you want the player to change to when he enters the command
new OldSkin[MAX_PLAYERS];
new 
Equipped[MAX_PLAYERS] = false;
CMD:equipment(playeridparams[]) {
    if(
Equipped[playerid] == true) {
        
SendClientMessage(playerid0x005500AA"You have returned to your old clothes");
        
SetPlayerSkin(playeridOldSkin[playerid]);
        
Equipped[playerid] = false;
    }
    else {
        
Equipped[playerid] = true;
        
OldSkin[playerid] = GetPlayerSkin(playerid);
        
SendClientMessage(playerid0x005500AA"You have changed your clothes");
        
SetPlayerSkin(playeridSkin);
    }
    return 
1;

Reply


Messages In This Thread
JobSkin - by Maky184 - 01.11.2017, 09:59
Re: JobSkin - by Arbico - 01.11.2017, 10:11
Re: JobSkin - by Maky184 - 01.11.2017, 11:23
Re: JobSkin - by n00blek - 01.11.2017, 11:26
Re: JobSkin - by CXdur - 01.11.2017, 13:06

Forum Jump:


Users browsing this thread: 2 Guest(s)