Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

Posted

Din cate imi aduc aminte nu se cer scripturi :-?

Posted

	if(strcmp(cmd, "/servername", true) == 0)
	{
        new passname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, passname, sizeof(passname));
 	if(strcmp(passname, "Darksone", true) == 0)
 	{
	    tmp = strtok(cmdtext, idx);
	    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY,"{00A1FF}USAGE{FFFFFF}: /servername [nume server]");
	    {
     	    format(tmp,sizeof(tmp),"hostname %s",cmdtext[11]);
     		SendRconCommand(tmp);
       		GetPlayerName(playerid, sendername, sizeof(sendername));
       		format(string, sizeof(string), "SERVER: %s a setat numele serverului: %s",sendername, cmdtext[11]);
       		SendClientMessageToAll(COLOR_LIGHTBLUE,string);
       		}
       	}
	    return 1;
 	}
Comanda /servername respectiva.
if(strcmp(passname, "Darksone", true) == 0)
In loc de "Darksone", poti pune numele tau de pe server, se foloseste pentru ca alti sa nu mai aibe acces la comanda, doar numele pus acolo!
if(strcmp(cmd, "/servername", true) == 0)

Comanda /servername este "standard", tu poti pune comanda prin "/", in ce vrei tu, de exemplu: /schimbanume !

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

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.