why this not work
#7

Код:
public OnPlayerRequestSpawn(playerid)
{
    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

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

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

    if(GetPlayerSkin(playerid) == 123)
    {
        if(!strcmp(PlayerName,"grandTheftOtto",true))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back grandTheftOtto");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_CRIMSON, "This is grandTheftOtto SKIN ONLY!");
            return 0;
        }
    }
    return 1;
}
Try putting that code under OnPlayerRequestSpawn

if they can't use the skin, They will not spawn and will go back to Class selection, if they can they will Spawn
return 1 = spawn
return 0 = no spawn
Hope that helped
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)