28.01.2011, 19:51
(
Последний раз редактировалось Michael@Belgium; 01.02.2011 в 17:25.
Причина: SOLVED
)
Ok guys, this don't work:
Can anyone correct it
------------------------------------------------------------------------------
SOLVED in this topic
pawn Код:
if(strcmp("/heal", cmdtext, true, 4) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(cmdtext[8])) return SendClientMessage(playerid, 0xFF0000AA, "Use: /heal [playerid]");
new gp = strval(cmdtext[8]);
if(!IsPlayerConnected(gp)) return SendClientMessage(playerid, 0xFF0000AA, "Invalid Playerid");
new pn[24], an[24], str[70];
GetPlayerName(playerid, an, 24); GetPlayerName(gp, pn, 24);
format(str, sizeof(str), "%s is healed by admin %s", pn, an);
SendClientMessageToAll(0xA9A9A9AA, str);
SetPlayerHealth(playerid, 100);
return 1;
}
}
------------------------------------------------------------------------------
SOLVED in this topic