getplayerskin help
#4

Quote:
Originally Posted by NL-Sultan
Посмотреть сообщение
Maybe this will work.

pawn Код:
new skin = GetPlayerSkin(playerid); // Put this on the TOP of the script.

// This under OnPlayerStateChange

if(skin == 294) // If the skin equals 294
{
    SetPlayerSkin(playerid, 270); // Sets the skin back to 270.
    SendClientMessage(playerid, YourColorID, "This skin is restricted.");
    return 1;
    }
}
You cannot add skin as a global variable like that, because playerid is undefined variable. Furthermore, OnPlayerStateChange has nothing to do with the skins, I'd recommend to check in OnPlayerSpawn if the skin id 294 and then set it to 270 as you wish!
Reply


Messages In This Thread
getplayerskin help - by Proph3t - 30.05.2013, 15:09
Re: getplayerskin help - by [ABK]Antonio - 30.05.2013, 15:11
Re: getplayerskin help - by NL-Sultan - 30.05.2013, 15:16
Re: getplayerskin help - by Konstantinos - 30.05.2013, 15:19
Re: getplayerskin help - by [ABK]Antonio - 30.05.2013, 15:20
Re: getplayerskin help - by Proph3t - 30.05.2013, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)