11.08.2011, 12:29
Current code:
Now the /ask command is also bugged ingame. You get:
[ASK] Henk Janus: PlayerCommandRecieved
instead of
[ASK] Henk Janus: Hello
pawn Код:
CMD:ask(playerid, channel[], params[])
{
{
new string[128], reason[64], msg[64];
if(sscanf(params, "z", reason)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[Question]");
else
{
SendClientMessage(playerid, COLOR_WHITE, ""#COL_ORANGE"[SERVER]"#COL_LRED" Your message has been send to all online administrators.");
new pName[24];
GetPlayerRame(playerid, pName, 128);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(string, sizeof(string), ""#COL_BROWN"[ASK]"#COL_EASY" %s: %s ", pName, reason);
SendMessageToAdmins(COLOR_RED, string);
format(string, sizeof(string), ""#COL_BROWN"[ASK]"#COL_EASY" %s: %s ", pName, reason);
IRC_GroupSay(gGroupID, channel, msg);
}
}
}
}
return 1;
}
[ASK] Henk Janus: PlayerCommandRecieved
instead of
[ASK] Henk Janus: Hello