Need help
#4

pawn Код:
CMD:adduty(playerid, params[])
{
    new string[256], AdminName[28];
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
    else
    {
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance).", AdminName);
        SendClientMessageToAll(COLOR_YELLOW, string);
        SetPlayerColor(playerid, COLOR_BLACK);
        SetPlayerHealth(playerid, 99999);
        SetPlayerArmour(playerid, 99999);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now administrator On duty .");
    }
    return 1;
}
Use this.
Reply


Messages In This Thread
Need help - by JoeyDeBlob - 26.12.2011, 14:34
AW: Need help - by jack3 - 26.12.2011, 14:44
Re: Need help - by JoeyDeBlob - 26.12.2011, 15:32
Re: Need help - by rinori - 26.12.2011, 15:37
Re: Need help - by JoeyDeBlob - 26.12.2011, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)