21.06.2012, 09:12
pawn Code:
COMMAND:adminhelp(playerid,params[])
{
new text[128];
if(sscanf(params, "s[128]", text))SendClientMessage(playerid, RED, "Usage: /adminhelp [Text]");
SendClientMessage(playerid,RED,"Your question has been sent to online admins!");
new Name[MAX_PLAYER_NAME], KickMessage[128];
GetPlayerName(playerid, Name, sizeof(Name));
format(KickMessage, sizeof(KickMessage), "[Question]:%s(%d):%s", Name, playerid,text);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1) /* if(PlayerInfo[i][pAdmin] >= 1) Change it with yours */ SendClientMessage(i, YELLOW, KickMessage); PlayerPlaySound(i, 1130, 0.0, 0.0, 0.0);
}
return 1;
}