Command won't show
#2

Код:
CMD:makeadmin(playerid, params[])  {
 	if(PlayerInfo[playerid][pAdmin] >= 6) {

  	new
   	iAdminValue,
   	iTargetID;

  	if(sscanf(params, "ii", iTargetID, iAdminValue)) {
    	return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /makeadmin [playerid] [level]");
  	}
  	if(IsPlayerConnected(iTargetID)) {
   		if(PlayerInfo[iTargetID][pHelper] >= 1) return SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot make moderators admins!");

    	new
     	szMessage[47 + (MAX_PLAYER_NAME * 2)];

    	PlayerInfo[iTargetID][pAdmin] = iAdminValue;
    	format(szMessage, sizeof(szMessage), "AdmCmd: %s has promoted %s to a level %d admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
    	ABroadCast(COLOR_LIGHTRED,szMessage, 2);
    	format(szMessage, sizeof(szMessage), "You have been promoted to a level %d admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
    	SendClientMessageEx(iTargetID, COLOR_LIGHTBLUE, szMessage);
    	format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d admin.", GetPlayerNameEx(iTargetID),iAdminValue);
    	SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);
	}
  	else SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid player specified.");
  	}
 	else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
 	return 1;
}

CMD:stats(playerid, params[]) {
	if (gPlayerLogged{playerid} != 0) {
		ShowStats(playerid,playerid);
	}
	return 1;
}
these are the commands, the cmdtats I have done correctly as I have made a ShowStats...

But the commands do not do anything in game!
Reply


Messages In This Thread
Command won't show - by MrCallum - 28.11.2014, 12:48
Re: Command won't show - by MrCallum - 28.11.2014, 12:57
Re: Command won't show - by VitalRP - 28.11.2014, 13:26
Re: Command won't show - by MrCallum - 28.11.2014, 14:05
Re: Command won't show - by MrCallum - 28.11.2014, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)