skin not saving/loading properly
#1

Hi, so basicly when I /skin it does change my skin, and if i die it sets it back to what i had. The problem is that it sets the same skin for other players. Video: https://www.youtube.com/watch?v=uZs7klonbq4

Код:
new oldskin;

CMD:skin(playerid,params[])
{
    new skinid;
    if(sscanf(params, "i", skinid)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /skin [skin ID]") ;
    if(skinid < 1 || skinid > 311) return SendClientMessage(playerid, COLOR_ORANGE, "Invalid skin ID!");
    new Jstring[128];
    format(Jstring, sizeof(Jstring), "You have set your skin ID to %i.", skinid);
    SendClientMessage(playerid, COLOR_ORANGERED, Jstring);
    SetPVarInt(playerid,"Useskin",1);
    SetPlayerSkin(playerid, skinid);
    oldskin = GetPlayerSkin(playerid);
    return 1;
}

public OnPlayerSpawn(playerid)
{
        SetPlayerSkin(playerid, oldskin);
        return 1;
}
Help me please
Reply


Messages In This Thread
skin not saving/loading properly - by Counterafk - 11.10.2015, 22:29
Re: skin not saving/loading properly - by rinori - 11.10.2015, 22:43
Re: skin not saving/loading properly - by Unte99 - 11.10.2015, 22:43
Re: skin not saving/loading properly - by Jefff - 11.10.2015, 22:47
Re: skin not saving/loading properly - by Counterafk - 11.10.2015, 22:53
Re: skin not saving/loading properly - by Unte99 - 11.10.2015, 22:59
Re: skin not saving/loading properly - by Counterafk - 11.10.2015, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)