28.07.2009, 22:43
You can't use your nickname like that. If you want the skin to only be available for you (with your nickname), then try something like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new skin;
new name[MAX_PLAYER_NAME];
skin = GetPlayerSkin(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(skin == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}