11.10.2015, 22:29
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
Help me please
Код:
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; }