Jump to content

Question

Posted

Salut, am si eu nevoie de o comanda (/text) adica atunci cand in joc scrii (/text Salutareeeee) in folderul cu server sa imi apara un fisier .txt cu ce am scris in joc... Cine ma ajuta raman dator..... Multumesc Anticipat

2 answers to this question

Recommended Posts

Posted

acela ce spui tu e announce :) dane comanda pe care o ai, pana atunci iti dau announce'ul cu save

CMD:announce(playerid,params[])
{
    if(IsPlayerAdmin(playerid) || AccInfo[playerid][Level] >= 8)
	{
	    new atxt[100],string[128];
	    //----------------------------------------------------------------------
    	if(sscanf(params, "s[100]", atxt)) return
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /announce [Text]") &&
		SendClientMessage(playerid, orange, "Function: Will Announce the specified Message in screen");
		//----------------------------------------------------------------------
    	SendCommandToAdmins(playerid, "Announce");
    	format(string, 128,"%s: %s", PlayerName2(playerid), atxt);
		SaveIn("Announce", string);
		return GameTextForAll(atxt, 4000, 1);
    }
	else return ErrorMessages(playerid, 7);
}

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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.