11.12.2010, 07:47
I want the
only show for admins
pawn Код:
format(string, sizeof(string), "%s(%d) did set %s(%d)'s armour to %d",name, playerid, name, playerid, inputtext); //i want it like: [Lvrcr]Larsey123(0) did set RandomName(1)'s armour to 10
SendClientMessageToAll(0xFFFF00AA, string);
pawn Код:
case 2:
{
if(strlen(inputtext) > 3)
return SendClientMessage(playerid, 0xFFFFFFFF, "ERROR: Your message was too long. Max: 3 characters");
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(adminPlayer[playerid], name, sizeof(name));
format(string, sizeof(string), "%s(%d) did set %s(%d)'s armour to %d",name, playerid, name, playerid, inputtext); //i want it like: [Lvrcr]Larsey123(0) did set RandomName(1)'s armour to 10
SendClientMessageToAll(0xFFFF00AA, string);
SetPlayerHealth(adminPlayer[playerid], floatstr(inputtext));
adminPlayer[playerid] = 0;
}