cLickY 0 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Ahojte hladám taky FS(hodnosti) videl som to na jednom servery každý užívatel má body a za tie body može mať hodnosť, napríklad Vojak,idiot,VIP atd..Má to napísané aj pred menom.Nemožem to nikde na internete nájsť. Link to comment Share on other sites More sharing options...
jenkings 121 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Tak jednoduchý RANK systém máš tady : http://pastebin.com/u0xFy18X (jen je potřeba dodělat ukládání) a tady jsem našel jednuduchý prefix dělaný pro RCONA // FILTERSCRIPT By: d0nTtoucH // No Rules //#define FILTERSCRIPT #include #define PrefixCheck1(prefix_rcon); new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "[Owner]"; #define PrefixCheck2(prefix_rcon); format(String, sizeof(String), "{0080C0}%s{00FF00}%s: %s", Prefix, pName, text); #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Prefix by d0nTtoucH "); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Good Bye "); print("----------------------------------\n"); } #endif public OnPlayerText(playerid, text[]) { if(IsPlayerAdmin(playerid)) { new pName[MAX_PLAYER_NAME], String[128]; GetPlayerName(playerid, pName, 24); format(String, sizeof(String), "{00BF00}[RCON] {FF0000}%s {FF8000}%s", pName, text); SendClientMessageToAll(-1,String); return 0; } return 1; } Obojí jsem našel během minuty... stačí si to už jen malinko poupravit sám a máš to co jsi chtěl Link to comment Share on other sites More sharing options...
cLickY 0 Odesláno: 30. Červenec, 2013 Author Share Odesláno: 30. Červenec, 2013 Poupravil by si mi to pls?Lebo ja som z pawna úplný... Link to comment Share on other sites More sharing options...
jenkings 121 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Není to složité, ale já tak nějak mám důležitější věci na práci Pročti si pár zdejších tutoriálů a zvládneš to sám Link to comment Share on other sites More sharing options...
ATomas 290 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Myslis neco takoveho co je v rze8.1 ? Na tom neni nic tezkeho ne ? Link to comment Share on other sites More sharing options...
jenkings 121 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Na tom neni nic tezkeho ne ? Není ale žádné z dětí které nutně potřebují SAMP server neumí pawn Link to comment Share on other sites More sharing options...
cLickY 0 Odesláno: 30. Červenec, 2013 Author Share Odesláno: 30. Červenec, 2013 Ne. Viděl jsem to na normálnich serverech.. asi myslí že tam máš třeba: [ Vojín+Hráč ] Nick: text A ano je to lehky ///EDIT: Jo a kdyby něco tak za ty body nic nedostane ,ale pokud má dostatek tak může bejt povíšen administrátorem. Áno presne toto myslím.Kde to bolo?Popr. link na stiahnutie. Link to comment Share on other sites More sharing options...
cLickY 0 Odesláno: 30. Červenec, 2013 Author Share Odesláno: 30. Červenec, 2013 Tak keď to nedal na download tak načo mi bude potom skype.Keď to aj tak nedá. Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 #include a_samp new Taxikar[MAX_PLAYERS]; new Policajt[MAX_PLAYERS]; new Mafian[MAX_PLAYERS]; public OnPlayerText(playerid, text[]) { if(Taxikar[playerid] == 1) { new string[128]; format(string,sizeof(string), "{FF0077}[ Taxikar ] %s: %s",Meno(playerid), text); SendClientMessageToAll(-1, string); return 0; } if(Policajt[playerid] == 2) { new string1[128]; { format(string1, sizeof(string1),"{FF0077}[ Policajt ] %s: %s",Meno(playerid), text); SendClientMessageToAll(-1, string1); } return 0; } if(Mafian[playerid] == 3) { new string2[128]; format(string2, sizeof(string2),"{FF0077}[ Mafian ] %s: %s",Meno(playerid), text); SendClientMessageToAll(-1, string2); } return 0; } stock Meno(playerid) { new bName[MAX_PLAYER_NAME]; GetPlayerName(playerid, bName, sizeof(bName)); return bName; } Nejako takto si to mislel? Link to comment Share on other sites More sharing options...
cLickY 0 Odesláno: 30. Červenec, 2013 Author Share Odesláno: 30. Červenec, 2013 Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 RoonyCZ server :DDDDDDDDDDDDDDDDDD Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Ale no zas neprehaňaj :d Link to comment Share on other sites More sharing options...
cLickY 0 Odesláno: 30. Červenec, 2013 Author Share Odesláno: 30. Červenec, 2013 Tak ako teda? Link to comment Share on other sites More sharing options...
Quiter 99 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Ale no zas neprehaňaj :d on fakt nepreháňa, takú blbosť tu už dlho nikto nevidel a urob to takto : A co to udělat rovnou: new Hodn[20]={ {"Nikdo"}, // 0 {"Boss"} // 1 atď } stock Hod(idh){ return Hodn[idho];} potom daj toto do OnPlayerText nre str[125]; format(str,sizeof(str),"[ %s ]%s : %s",Hod(Hodnost[playerid]),Name(playerid),text); SCMTA(farba,str); return false; nezabudni si dopísať ďalších 18 hodností a hodnosti nastavuješ takto : Hodnost[playerid] = 1; // číslo hodnosti Link to comment Share on other sites More sharing options...
Fr0st 23 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 najjednoduchšie hodnosti ktoré možno budú fungovať.. Napíšem z hlavy.. new body[MAX_PLAYERS]; onplayerdeath: body[killerid]++; onplayertext: if(body[playerid] < 10) SendClientMessage(-1,"novačik"); if(body[playerid] >= 10) SendClientMessage(-1,"zaučenec"); dúfam že si tomu pochopil lebo jak nie tak je to s tebou fakt bieda Link to comment Share on other sites More sharing options...
rEf 53 Odesláno: 30. Červenec, 2013 Share Odesláno: 30. Červenec, 2013 Jaj mě z vás pojebe Celkem by mě to také zajímalo ale jak vidím jak mu pomáháte radši se jdu prošprtat k tomu. Myslíš takhle si to chtěl? Nahoru do modu. #define DEFAULT_RANK 0 new Def = DEFAULT_RANK; enum PlayerInfo { Name[24] } new Rank[2][1][PlayerInfo] = { {"Player"}, // 0 {"Admin"} // 1 }; Do OnPlayerText new str[128]; format(str,sizeof(str),"[ %s ]%s : %s",Rank[Def][0][Name],Jmeno(playerid),text); SendClientMessageToAll(0xFFFFFFAA,str); Nastaví se to takhle ne? dcmd_hodnost(playerid, params[]) { if (Rank[0][0][Name] == 0 || Rank[1][0][Name] == 1) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "Nemáte dostatečná opravnění k použití tohoto příkazů !"); { new string[128], pos, hodnost; if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, 0xEFEFF7AA, "( ! ) Použij /hodnost (ID) (0-1) ."); if(strlen(params) > 23) return SendClientMessage(playerid, 0xEFEFF7AA, "( ! ) Zadal jste chybné parametry ."); new id = strval(params[0]); hodnost = strval(params[pos]); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xEFEFF7AA, "( ! ) Hráč se zadaným id není na serveru ."); if(hodnost < 0 || hodnost > 1) return SendClientMessage(playerid, 0xEFEFF7AA, "( ! ) Rozmezí levelu je 1-2 ."); format(string, sizeof(string), "Administrátor %s nastavil hráči %s hodnost %d.", Jmeno(playerid), Jmeno(id), hodnost); SendClientMessageToAll(0xEFEFF7AA, string); Def = hodnost; } } return 1; } Nejsem si jistej radši to zkusim Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now