why this not work
#6

It should be:
pawn Код:
//==============================================================================
//==============================================================================
    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

    if(GetPlayerSkin(playerid) == 294)
    {
        if(!strcmp(PlayerName,"willsuckformoney",true))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back willsuckformoney");
        }
        else
        {
            SendClientMessage(playerid, COLOR_CRIMSON, "This is willsuckformoney SKIN ONLY!");
            ForceClassSelection(playerid);
        }
    }

    if(GetPlayerSkin(playerid) == 204)
    {
        if(!strcmp(PlayerName,"Babul",true))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back Babul");
        }
        else
        {
            SendClientMessage(playerid, COLOR_CRIMSON, "This is Babul SKIN ONLY!");
            ForceClassSelection(playerid);
        }
    }

    if(GetPlayerSkin(playerid) == 123)
    {
        if(!strcmp(PlayerName,"grandTheftOtto",true))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back grandTheftOtto");
        }
        else
        {
            SendClientMessage(playerid, COLOR_CRIMSON, "This is grandTheftOtto SKIN ONLY!");
            ForceClassSelection(playerid);
        }
    }
//==============================================================================
//==============================================================================
But, you did figure it out like that, right?
Reply


Messages In This Thread
why this not work - by willsuckformoney - 25.07.2010, 01:24
Re: why this not work - by Toni - 25.07.2010, 01:26
Re: why this not work - by willsuckformoney - 25.07.2010, 01:28
Re: why this not work - by Toni - 25.07.2010, 01:51
Re: why this not work - by willsuckformoney - 25.07.2010, 01:52
Re: why this not work - by VirSpectorX - 25.07.2010, 05:19
Re: why this not work - by Victor - 25.07.2010, 05:50

Forum Jump:


Users browsing this thread: 1 Guest(s)