16.12.2010, 14:40
:P thanks, and a Q about dcmd:
How to, like this :P
How to, like this :P
pawn Код:
dcmd_heal(playerid, params[])
{
new id;
if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \'/heal [ID]\'");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
else
{
SetPlayerHealth(id, 100.0);
//...
format(string, sizeof(string), "%s(%d) Healed you.",adminname ,playerid);
//...
format(string, sizeof(string), "You Healed %s(%d)",playername ,playerid);
}
return 1;
}