21.03.2010, 12:32
Well, the subject says it all.. I'm ID 11, I want ID 7's armour (/setarmour 7 100) but it sets mine...
Last line of my script.
pawn Код:
dcmd_sethp(playerid,params[])
{
new Float:Health,target;
if(pInfo[playerid][pAdmin] < 3) return SystemMessage(playerid, "You are not an Administrator with the required level.");
if(sscanf(params,"uf",target,Health)) return SystemMessage(playerid, "USAGE: /sethp [playername/id] [health]");
SetPlayerHealth2(playerid,Health);
return 1;
}
dcmd_setarmour(playerid,params[])
{
new Float:Armour,target;
if(pInfo[playerid][pAdmin] < 3) return SystemMessage(playerid, "You are not an Administrator with the required level.");
if(sscanf(params,"uf",target,Armour)) return SystemMessage(playerid, "USAGE: /setarmour [playername/id] [armour]");
SetPlayerArmour(playerid,Armour);
return 1;
}
pawn Код:
stock SetPlayerHealth2(playerid, Float:health)
{
new intbroj = floatround(health);
SetPlayerHealth(playerid, intbroj);
return 1;
}