Nothing happens when i type CMD! (+rep)
#8

Quote:
Originally Posted by Ari
Посмотреть сообщение
pawn Код:
CMD:setadminname(playerid, params[])
{
    new iTargetID, iTargetName[MAX_PLAYER_NAME], szName[MAX_PLAYER_NAME], szString[128];
    if(sscanf(params, "is", iTargetID, szName)) SendClientMessage(playerid, COL_GREY, "USAGE: /setadminname [ID] [NAME]");
   
   
    if(!IsPlayerConnected(iTargetID)) {
        new string[128];
        format(string, sizeof(string), "WARN: Player ID: %i isn't connected!", iTargetID);
        SendClientMessage(playerid, COL_GREY, string);
    }
    GetPlayerName(iTargetID, iTargetName, sizeof(iTargetName));
   
    if(PlayerInfo[playerid][pAdmin] < 99998) return SendClientMessage(playerid, COL_GREY, "ERR: You cannot use this command!"):
    if(PlayerInfo[iTargetID][pAdmin] < 1) return SendClientMessage(playerid, COL_GREY, "ERR: %s isn't an admin!", iTargetName);
    if(PlayerInfo[iTargetID][pAdminDuty] > 0) return SendClientMessage(playerid, COL_GREY, "ERR: %s's name cannot be set because they're currently on-duty!");
    if(strlen(szName) < 3 || > 32) return SendClientMessage(playerid, COL_GREY, "ERR: Input must be more than 3 and less than 32!");
   
    format(szString, sizeof(szString), "SRV: Administrator %s has set your administrator name to ""%s.""", GetPlayerNameEx(playerid), szName);
    SendClientMessage(iTargetID, COLOR_WHITE, str);
   
    format(szString, sizeof(szString), "SRV: %s has set %s's administrator name to '%s'", GetPlayerNameEx(playerid), iTargetName, szName);
    ABroadCast(COLOR_LIGHTRED, szString, 1);
    return 1;
}
That WAS HZ:RP script, it references Zhao.
ok i will tell my friend stop sending codes copied from H:ZRP
Reply


Messages In This Thread
Nothing happens when i type CMD! (+rep) - by ChristianIvann09 - 09.04.2014, 07:53
Re: Nothing happens when i type CMD! (+rep) - by Ari - 09.04.2014, 08:05
Re: Nothing happens when i type CMD! (+rep) - by ChristianIvann09 - 09.04.2014, 08:08
Re: Nothing happens when i type CMD! (+rep) - by SickAttack - 09.04.2014, 08:10
Re: Nothing happens when i type CMD! (+rep) - by ChristianIvann09 - 09.04.2014, 08:12
Re: Nothing happens when i type CMD! (+rep) - by SickAttack - 09.04.2014, 08:14
Re: Nothing happens when i type CMD! (+rep) - by Ari - 09.04.2014, 08:22
Re: Nothing happens when i type CMD! (+rep) - by ChristianIvann09 - 09.04.2014, 08:29

Forum Jump:


Users browsing this thread: 3 Guest(s)