Host-name

Započeo XXXAnunnaki, Februar 08, 2017, 12:55:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam problem oko komande /serverime ubacim tu komandu , ali kada ukucam ime servera ne promeni se , sta treba da dodam ? Ili ako vi imate vec sredjeno sve to :D

YCMD:serverime(playerid, params[],help)
{
#pragma unused help
if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, -1, "Nisi dovoljan admin level");
SCM(playerid, -1, "Upisi ime servera koje ce biti setovano.");
SPD(playerid, 344, DSI, "Ime servera", "Upisite zeljeno ime servera:", "Postavi", "Odustani");
return 1;
}

[pawn]YCMD:serverime(playerid, params[],help)
{
#pragma unused help
if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, -1, "Nisi dovoljan admin level");
new ime[128],ime2[128];
if (sscanf(params, "s",ime)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /serverime IME"");
format(ime2,128,"hostname %s",ime);
SendRconCommand(ime2);
return 1;
}
[/pawn]

Citat: Harexe Seljak poslato Februar 08, 2017, 13:03:33 POSLE PODNE
[pawn]YCMD:serverime(playerid, params[],help)
{
#pragma unused help
if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, -1, "Nisi dovoljan admin level");
new ime[128],ime2[128];
if (sscanf(params, "s",ime)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /serverime IME"");
format(ime2,128,"hostname %s",ime);
SendRconCommand(ime2);
return 1;
}
[/pawn]
Hvala mnogo idem da testam :D

LOCK!

ÄŒitaj pravila!

"They have computers, and they may have other weapons of mass destruction."