30.04.2012, 14:50
Quote:
|
i need commant /ask and type and go message admin can help me?
|
pawn Код:
COMMAND:ask(playerid, params[])
{
new Fstring[164], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", Fstring))
{
SendClientMessage(playerid, -1, "ERROR: Usage /ask [message]");
return 1;
}
else
{
for(new f = 0; f < MAX_PLAYERS; f++)
{
if(IsPlayerConnected(f))
{
if(IsPlayerAdmin(f)) // you could change into your own admin system
{
format(Fstring, sizeof(Fstring), "(PM TO ADMINS) %s: %s ", name, Fstring);
SendClientMessage(f, -1, Fstring);
}
}
}
}
return 1;
}
-FalconX


