DCMD HELP [+REP}
#3

Here:
pawn Код:
dcmd_adsf(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params,"ui",ID))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adsf (Player Name/ID)");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot give them SF status.",ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(PLAYERLIST_authed[ID] != 1)
    {
        format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you give them SF status.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(CanUseSF[ID] == 1337)
    {
        format(string,sizeof(string),"%s(%d) is already a SF member.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    format(string,sizeof(string),"[ADMIN SF] Administrator has given %s(%d) SF status.",PlayerName(ID),ID);
    SendClientMessageToAll(COLOR_ADMIN,string);

    SendClientMessage(ID,COLOR_ADMIN,"You have been given SF status by a Server Administrator. Congratulations.");
    CanUseCIA[ID] =1337;

    format(string,sizeof(string),"9[ADMIN SF] Administrator has given %s(%d) SF status.",PlayerName(ID),ID);
    IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
    return 1;
}
And /adunsf is here:

pawn Код:
dcmd_adunsf(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params,"ui",ID))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adunsf (Player Name/ID)");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot take their CIA status.",ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(PLAYERLIST_authed[ID] != 1)
    {
        format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you take their SF status.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(CanUseSF[ID] != 1337)
    {
        format(string,sizeof(string),"%s(%d) is not a SF member.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    format(string,sizeof(string),"[ADMIN UNSF] Administrator has taken %s(%d)'s SF status.",PlayerName(ID),ID);
    SendClientMessageToAll(COLOR_ADMIN,string);

    SendClientMessage(ID,COLOR_ADMIN,"Your SF status has been taken away from you by a Server Administrator. Unlucky.");
    CanUseSF[ID] =0;

    format(string,sizeof(string),"9[ADMIN UNSF] Administrator has taken %s(%d)'s CIA status.",PlayerName(ID),ID);
    IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
    return 1;
}
Reply


Messages In This Thread
DCMD HELP [+REP} - by James Coral - 22.01.2012, 05:31
Respuesta: DCMD HELP [+REP} - by [Nikk] - 22.01.2012, 05:32
Re: DCMD HELP [+REP} - by James Coral - 22.01.2012, 05:33
Re: DCMD HELP [+REP} - by Guest9328472398472 - 22.01.2012, 05:33
Re: DCMD HELP [+REP} - by James Coral - 22.01.2012, 05:35
Re: DCMD HELP [+REP} - by Guest9328472398472 - 22.01.2012, 05:37
Re: DCMD HELP [+REP} - by MasterJoker - 22.01.2012, 05:37
Re: DCMD HELP [+REP} - by Da' J' - 22.01.2012, 05:38
Re: DCMD HELP [+REP} - by Guest9328472398472 - 22.01.2012, 05:42
Re: DCMD HELP [+REP} - by James Coral - 22.01.2012, 05:43

Forum Jump:


Users browsing this thread: 1 Guest(s)