Posts: 219
Threads: 39
Joined: Mar 2011
Reputation:
0
Thanks, it was saying an error with the playerid but i just add new playerid; +REP for you.
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?
Posts: 219
Threads: 39
Joined: Mar 2011
Reputation:
0
Oh it isn't work when i type somethin it stay in blue color.
Posts: 373
Threads: 8
Joined: Apr 2011
Reputation:
0
add return 0 after sendclientmessagetoall?