pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 0) //Change to your Skin ID
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(strcmp(name, "[FYB]DoubleMac", false) == 0)
{
SendClientMessage(playerid, 0x00FF00AA, "Welcome [FYB]DoubleMac!");
}
else {
GameTextForPlayer(playerid, "~g~[FYB]DoubleMac", 5000, 5);
SendClientMessage(playerid, 0xFF0000AA, "Only [FYB]DoubleMac can use this skin!");
return 0;
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 9)
{
GameTextForPlayer(playerid, "~g~[FYB]DoubleMac", 5000, 5);
}
return 1;
}