wixi 0 Odesláno: 22. Září, 2011 Share Odesláno: 22. Září, 2011 Ahoj na text drawy jsem lama tak prosim aby jste mi do nize uvedeneho pwn udelali promneny text draw. je FS ktery udela sa mp server na LVL. text draw bych chtel nikam dolu na střed dekuji předem. new PlayerLevel[MAX_PLAYERS]; new PlayerExp[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID) { if(PlayerLevel[playerid] < 500) { if(Povolani[playerid] == Povolani[killerid]) GivePlayerExp(playerid, -5); else GivePlayerExp(playerid, 2); } } return 1; } stock GivePlayerExp(playerid, int) { PlayerExp[playerid] += int; if(PlayerExp[playerid] > ( PlayerLevel[playerid]* 100)) { // Novej level if(PlayerLevel[playerid] < 499) { PlayerExp[playerid] = PlayerExp[playerid]-(PlayerLevel[playerid]*100); PlayerLevel[playerid]++; new string[64]; format(string, sizeof(string), "Dosáhl jste úrovně %d. Zkušenosti: %d/%d", PlayerLevel[playerid], PlayerExp[playerid], (PlayerLevel[playerid]*100)); SendClientMessage(playerid, 0xFFFFFFAA, string); } else { // Level 500 PlayerLevel[playerid] = 500; PlayerExp[playerid] = 0; SendClientMessage(playerid, 0xFFFFFFAA, "Dosáhl jste poslední úrovně, Gratulujeme"); AdminLevel[playerid] = 0; } } else if(PlayerExp[playerid] < 0) { PlayerLevel[playerid]--; PlayerExp[playerid] = (PlayerLevel[playerid]*100)+PlayerExp[playerid]; SendClientMessage(playerid, 0xFFFFFFAA, "Za zabití spoluhráče jste se propadl na level %d. Zkušenosti: %d/%d", PlayerLevel[playerid], PlayerExp[playerid], (PlayerLevel[playerid]*100)); } else { new str[64]; format(str, sizeof(str), "Zkušenosti: %d/%d", PlayerExp[playerid], (PlayerLevel[playerid]*100)); SendClientMessage(playerid, 0xFFFFFFAA, str); } } Link to comment Share on other sites More sharing options...
0 Angelus 3 Odesláno: 22. Září, 2011 Share Odesláno: 22. Září, 2011 text-draw-editor-tde-t2362.html môžeš si spraviť TextDraw podľa svojich predstáv Link to comment Share on other sites More sharing options...
0 wixi 0 Odesláno: 22. Září, 2011 Author Share Odesláno: 22. Září, 2011 dekuji ale ten mi nefungoval chtel bych primo do FS. Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 22. Září, 2011 Share Odesláno: 22. Září, 2011 lol to si lenivý si to spraviť ? Link to comment Share on other sites More sharing options...
0 Pongo 0 Odesláno: 22. Září, 2011 Share Odesláno: 22. Září, 2011 http://forum.sa-mp.com/showthread.php?t=117851 http://forum.sa-mp.com/showthread.php?t=12018 Stačí ? Link to comment Share on other sites More sharing options...
Dotaz
wixi 0
Ahoj na text drawy jsem lama tak prosim aby jste mi do nize uvedeneho pwn udelali promneny text draw. je FS ktery udela sa mp server na LVL. text draw bych chtel nikam dolu na střed dekuji předem.
Link to comment
Share on other sites
4 odpovědí na tuto otázku
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