Admin command
#2

Try this: (Not Tested):

pawn Код:
public OnPlayerText(playerid,text[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, 256, "%s[%d]: %s",name, playerid, text);
SendClientMessageToAll(COLOR_BLUE_HERE,string);
return 0;
}
return 1;
}
Reply


Messages In This Thread
Admin command - by spyware· - 13.02.2010, 16:10
Re: Admin command - by LuxurioN™ - 13.02.2010, 16:42
Re: Admin command - by spyware· - 13.02.2010, 16:53
Re: Admin command - by LuxurioN™ - 13.02.2010, 16:59
Re: Admin command - by spyware· - 13.02.2010, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)