02.05.2009, 05:26
Hey,
I'm curious if its possible to add where if a player is talking in a command for an RP server, like /o or /ooc it would also broadcast is to the RCON CLIENT?
Note: I'm speaking of REMOTE RCON
I'll paste a command here for an example:
I'm curious if its possible to add where if a player is talking in a command for an RP server, like /o or /ooc it would also broadcast is to the RCON CLIENT?
Note: I'm speaking of REMOTE RCON
I'll paste a command here for an example:
Код:
if (strcmp(cmd, "/o") == 0){ if(MUTED_SPECIAL[playerid]==0){ if(MUTED[playerid]==0){ new playername[MAX_PLAYER_NAME]; if (strlen(cmdtext) > 3){ for(new i=0; i<APPROX_PLAYERS; i++){ if(GetDistanceBetweenPlayers(playerid,i) < 50) { GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "(OOC-L) %s: (( %s ))", playername, cmdtext[3]); SendClientMessage(i,COLOR_GREY,string); printf(string); }} }else{ format(string, sizeof(string), "USAGE: /o [Message]"); SendMessage(playerid, string); } }else{ SendClientMessage(playerid,COLOR_BRIGHTRED,"(INFO) You cannot use this feature as you have been muted by server security personnel."); } } return 1; }