SA-MP Forums Archive
Skin n using skin help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skin n using skin help (/showthread.php?tid=369940)



Skin n using skin help - trapstar2020 - 18.08.2012

Код:
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


Re: Skin n using skin help - Naruto_Emilio - 18.08.2012

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...


Re: Skin n using skin help - trapstar2020 - 18.08.2012

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