Skin n using skin help
#1

Код:
public OnPlayerRequestSpawn(playerid)
{

    if(GetPlayerSkin(playerid) == 285)
    {
        if(PlayerInfo[playerid][pSwat] < 1)
        {
            GameTextForPlayer(playerid,"~r~~h~ADMIN~b~ Permission Needed",3000,3);
            SendClientMessage(playerid,COLOR_RED,"» You Need to Apply to join Swat Team");
            return 0;
        }
    }
    return 1;
}
When i join n spawn as spot it let me join even if the player info doesnt have swat in its info as 1, and yes my saving system works perfectly
Reply
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{

    if(GetPlayerSkin(playerid) == 285)
    {
        if(PlayerInfo[playerid][pSwat] == 0)
        {
            GameTextForPlayer(playerid,"~r~~h~ADMIN~b~ Permission Needed",3000,3);
            SendClientMessage(playerid,COLOR_RED,"» You Need to Apply to join Swat Team");
            return 0;
        }
    }
    return 1;
}
Try this...
Reply
#3

i just didnt reset the gm stupid me but tanx that works 2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)