Jump to content
  • 0

pomoc zmena rconu


1hackl3r

Dotaz

3 odpovědí na tuto otázku

Recommended Posts

  • 0


dcmd_zmenit(playerid, params[])
{
    if(IsPlayerConnected(playerid))
{
if(!strlen(params)) return SendClientMessage(playerid, B_BILA, "Použití: /zmenit [heslo]");
new string[56],string2[56],noveheslo = strval(params);
format(string,sizeof(string),"rcon_password %s",noveheslo);
format(string2.sizeof(string2),"Heslo je nyní: %s",noveheslo);
SendClientMessage(playerid,0xFFFFFFFF,string2);
SendRconCommand(string);
}
return 1;
}


 

netestoval jsem to..

Link to comment
Share on other sites

  • 0

dcmd_zmenit(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "Použití: /zmenit [heslo]");
new string[128];


format(string, sizeof string, "rcon_password %s", params);
SendRconCommand(string);


format(string, sizeof string, "Heslo je nyní: %s", params);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...