How can i make this command?
#6

Just a mistake ...

pawn Код:
CMD:makeadvisor(playerid,params[])
{
    new pID;

    new sendername[24], receivername[24], string[36];

    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,-1,"USAGE: /makeadvisor [playerid]");

    GetPlayerName(playerid,sendername,24);
    GetPlayerName(pID, receivername, 24);
   
    if(PlayerInfo[playerid][pDonatedRank] == 5) return SendClientMessage(playerid,COLOR_WHITE,"You Cannot Use This Command");
    if(PlayerInfo[playerid][pHelper] == 4) return SendClientMessage(playerid,COLOR_WHITE,"You Cannot Use This Command");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_WHITE,"This Player Is Not Connected");

    PlayerInfo[pID][pHelper] = 1;


    format(string,36,"You Have Been Set To Helper Status By %s (%d).",sendername, playerid);
    SendClientMessage(pID,COLOR_WHITE,string); // send the string message above to the receiver

    format(string,36,"You Have Set  %s (%d) To Helper Status.",receivername, pID);
    SendClientMessage(playerid,COLOR_WHITE,string); // send the string message above to the admin

    return 1;
}
Reply


Messages In This Thread
How can i make this command? - by DaRkAnGeL[NBK] - 09.11.2011, 21:10
Re: How can i make this command? - by grand.Theft.Otto - 09.11.2011, 21:57
Re: How can i make this command? - by DaRkAnGeL[NBK] - 09.11.2011, 22:14
Re: How can i make this command? - by grand.Theft.Otto - 09.11.2011, 23:20
Re: How can i make this command? - by Ensconce - 10.11.2011, 00:09
Re: How can i make this command? - by grand.Theft.Otto - 10.11.2011, 01:06
Re: How can i make this command? - by Ensconce - 10.11.2011, 03:04
Re: How can i make this command? - by DaRkAnGeL[NBK] - 10.11.2011, 03:09
Re: How can i make this command? - by grand.Theft.Otto - 10.11.2011, 12:20

Forum Jump:


Users browsing this thread: 3 Guest(s)