19.01.2018, 07:12 
	
	
	
		How can i change that to be with 3 options instead of one only
I want it to be like that, 
Usage: /setscore <id> <score> <ammount>
Available Scores: Criminal, Cop, Paramedic
Here is my Paramedic & Cop codes
	
	
	
	
Код:
CMD:setscore(playerid,params[]) {
	if(pInfo[playerid][Admin] >= 5) {
	    new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
 	    if(isnull(tmp) || isnull(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, RED, "USAGE: /setcriminal [playerid] [score]");
		new player1 = strval(tmp), score = strval(tmp2), string[128];
		if(pInfo[player1][Admin] == ServerInfo[MaxAdminLevel] && pInfo[playerid][Admin] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,RED,"SERVER: You are not authorized to use this command on this admin.");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
		{
			CMDMessageToAdmins(playerid,"SETSCORE");
			format(string, sizeof(string), "You have set \"%s's\" criminal level to '%d' ", pInfo[playerid][Name], score); SendClientMessage(playerid,blue,string);
			if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has set your criminal level to '%d'", pInfo[playerid][Name], score); SendClientMessage(player1,blue,string); }
   			return SetPlayerCriminal(player1, score);
		}
	    } else return SendClientMessage(playerid,RED,"SERVER: Player is not connected");
	} else return SendClientMessage(playerid,RED,"SERVER: You are not authorized to use this command.");
}
Usage: /setscore <id> <score> <ammount>
Available Scores: Criminal, Cop, Paramedic
Here is my Paramedic & Cop codes
Код:
SetPlayerCop(player1, score), SetPlayerParamedic(player1, score), pInfo[playerid][Cop], pInfo[playerid][Paramedic]


