Quote:
Originally Posted by Mean
Use [ pawn ] instead of [ php ]
Anyways, here is the fix:
pawn Код:
if(strcmp(cmd, "/say", true) == 0) { if ( !strlen( cmdtext ) ) return SendClientMessage( playerid, COLOUR_ORANGE, "Usage: /say [text]" ); new playername[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, playername, sizeof playername ); new string[ 128 ]; format( string, sizeof string, "**Admin [%s](id:%d): %s", playername, playerid, cmdtext ); // I changed this also return SendClientMessageToAll( COLOUR_RED, string ); }
I just changed strtok, since you don't need it in here.
|
thx but i still got a problem... when i write /say or /ann it says the command too... like if i will write /say hi
it will write **Admin[omer5198](id:0)/say hi... see the problem? i want it to say only the hi not the /say... same with /ann