Private skin problem
#4

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
Try something like:
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;
}
Worked, thanks.
Reply


Messages In This Thread
Private skin problem - by DeeCaay - 10.07.2012, 17:52
Re: Private skin problem - by coole210 - 10.07.2012, 17:57
Re: Private skin problem - by clarencecuzz - 10.07.2012, 18:06
Re : Re: Private skin problem - by DeeCaay - 10.07.2012, 18:17
Re: Private skin problem - by clarencecuzz - 10.07.2012, 18:19
Re: Private skin problem - by reh_007 - 10.07.2012, 18:30
Re: Private skin problem - by clarencecuzz - 10.07.2012, 18:33
Re: Private skin problem - by reh_007 - 10.07.2012, 18:37
Re: Private skin problem - by clarencecuzz - 10.07.2012, 18:48
Re: Private skin problem - by reh_007 - 10.07.2012, 19:01

Forum Jump:


Users browsing this thread: 2 Guest(s)