23.07.2012, 01:39
Do something like this:
Seriously try to ****** your question, I'm POSITIVE there are probably heaps of questions like this.
This requires sscanf, zcmd, and the custom stock I provided.
Change -1 to the color you want to use.
pawn Код:
CMD:helpme(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
new question[128];
if(sscanf(params, "s[128]", question)) return SendClientMessage(playerid, -1, "Usage: /helpme [question]");
SendMessageToAdmins(-1, question);
return 1;
}
stock SendMessageToAdmins(Color, Question[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(AdminVariableHere[i] >= 1)
{
SendClientMessage(i, Color, Question);
}
}
return 1;
}
This requires sscanf, zcmd, and the custom stock I provided.
Change -1 to the color you want to use.