Skin Permissions
#7

PHP код:
enum aInfo
{
        
sLevel
}
public 
OnPlayerDisconnect(playeridreason)
{
           
dini_IntSet(file"SKIN"AccountInfo[playerid][sLevel]);
           return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
        if(
gTeam[playerid] == YouTeamNameHere)
     if(
AccountInfo[playerid][sLevel] < 1)
    {
        
GameTextForPlayer(playerid"~r~YOU NEED PERMISSION OF ADMIN"30003);
        return 
false;

Under on your login and register code

AccountInfo[playerid][sLevel] = dini_Int(file, "SKIN");

PHP код:
dcmd_givepermission(playeridparams[])
{
     if(
AccountInfo[playerid][scLevel] < 1SendClientMessage(playeridCOLOR_RED"Invalid Command! Use /cmds To See The General Commands.");
     else
    {
        new 
IDlevel;
        if(
sscanf(params"ii"IDlevel)) SendClientMessage(playeridCOLOR_WHITE"USAGE: /givepermission [playerid] (1) For Promoting (0) For Demoting]");
        else if(
ID == INVALID_PLAYER_IDSendClientMessage(playeridCOLOR_RED"Player is Not Connected.");
        else
        {
        
AccountInfo[ID][sLevel] = level;
        
SendClientMessage(ID, -1"{00FF00}Congratulations {CC99FF}You Are {FFCC00}Promoted {99FF33}To {33CCFF}Use That Skin");
        
SendClientMessage(playerid,COLOR_GREEN,"You Have Gave That Player To Skin Permission!");
    }
    }
    return 
1;


Hope You UnderStand
Reply


Messages In This Thread
Skin Permissions - by 123bob123 - 16.07.2015, 16:45
Re: Skin Permissions - by Sime30 - 16.07.2015, 17:05
Re: Skin Permissions - by 123bob123 - 16.07.2015, 17:14
Re : Skin Permissions - by KillerDVX - 16.07.2015, 17:39
Re: Skin Permissions - by 123bob123 - 17.07.2015, 09:38
Re: Skin Permissions - by Karan007 - 17.07.2015, 09:45
Re: Skin Permissions - by MaxJohnson - 17.07.2015, 09:57
Re: Skin Permissions - by 123bob123 - 17.07.2015, 10:10
Re: Re : Skin Permissions - by dominik523 - 17.07.2015, 10:27
Re: Skin Permissions - by MaxJohnson - 18.07.2015, 04:51

Forum Jump:


Users browsing this thread: 1 Guest(s)