Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by XtremeR
here u go,
pawn Code:
public OnRconCommand(cmd[]) { if(strcmp(cmd, "say", true) == 0) { new string[256], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"*Admin %s: %s",pName,string); SendClientMessageToAll(0xFFFF00AA,string);//yellow } return 1; }
|
There's no playerid parameter in that callback. Also, what do you think would happen if you used it from the console or a remote access application?