Jump to content
  • 0

Comanda /restart


Ch1NeZu

Question

Salut am si eu un host pe linux si nu pot da restart pe srv as dori daca se poate o comanda sa o bag in mod sau FS cu comanda /restart ....si sa dea restart la server , ca fac upgrade la server da nu pot da restart la el...

Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Uite Comanda /Restrat adaugo in Scriptul tau de ce sistema de admin folosesti!

dcmd_restart(playerid, params[])
{
    if(!IsPlayerLogged(playerid))
		return SendClientMessage(playerid, COLOR_RED, "EROARE: Sunteti deja logat!");

	if(pInfo[playerid][pAdmin] < 10)
	    return SendClientMessage(playerid, COLOR_RED, "EROARE: Nu poti folosi aceasta comanda!");

	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

	format(str, sizeof(str), "Administrator %s(%i) a dat restart la server, te rog asteapta...", PlayerName, playerid);
	SendClientMessageToAll(COLOR_BLUE, str);

	SendRconCommand("gmx");

	#pragma unused params
	return true;
}

Asta va merge 100% ca si eu o folosesc! bft ;)

939029346.pngViteza super :X
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.