27.11.2014, 12:20
You don't use Params why put? Look (with params):
much better, Sorry for my bad english, I am Brazilian.
pawn Code:
CMD:setarmour(playerid, params)
{
new id, armour;
if(sscanf(params, "ui", id, armour)) return SendClientMessage(playerid, "[USE]: /setarmour [ID] [ARMOUR]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, "Player don't Connected");
if(armour > 0 || armour < 100) return SendClientMessage(playerid, "Use numbers 0-100");
SetPlayerArmour(id, armour);
new Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, Name1, sizeof(Name1));
GetPlayerName(id, Name2, sizeof(Name2));
format(String, sizeof(String), "The Admin %s set armour %i of %s ",Name1, Armour, Name2);
SendClientMessageToAll(-1, String);
return 1;
}