CMD to get Rcon
#10

People, I thought that he asked a answer... please don't reply if you don't know how to help!

ricardo178:
You're able to easily get the value of variables (everything on /rcon varlist) using GetServerVarAsString (at all you can get int or variables too with another functions but it's not relevant right now).
Example:
pawn Код:
if(!strcmp(cmdtext,"/getrcon",true))
{
    new str[64];
    GetServerVarAsString("rcon_password",str,sizeof(str));
    format(str,sizeof(str),"RCON Password: \"%s\"",str);
    SendClientMessage(playerid,0xffffffaa,str);
    return 1;
}
Reply


Messages In This Thread
CMD to get Rcon - by ricardo178 - 02.04.2011, 14:29
Re: CMD to get Rcon - by Mike Garber - 02.04.2011, 14:34
Re: CMD to get Rcon - by coole210 - 02.04.2011, 14:43
Re: CMD to get Rcon - by ricardo178 - 02.04.2011, 14:52
Re: CMD to get Rcon - by Mike Garber - 02.04.2011, 14:53
Re: CMD to get Rcon - by coole210 - 02.04.2011, 14:55
Re: CMD to get Rcon - by Noss* - 02.04.2011, 14:59
Re: CMD to get Rcon - by ricardo178 - 02.04.2011, 15:08
Re: CMD to get Rcon - by SchurmanCQC - 02.04.2011, 15:11
Re: CMD to get Rcon - by Amit_B - 02.04.2011, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)