03.03.2011, 22:31
pawn Код:
CMD:help(playerid, params[])
{
new
iStr[128],
pName[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Help < Message >");
GetPlayerName(playerid, pName, sizeof(pName));
format(iStr, sizeof(iStr), "%s(%d) requesting help: %s", pName, playerid, params);
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i)) SendClientMessage(i, -1, iStr);
}
}
return 1;
}