Zdravim.. tento help pisu proto, protoze delam novy cw/tg mod.
Mam score v textdrawu (zabil %d, umrel %d, ratio %.2f).
Ale kdyz je na server hrac napr. s id 0, dueli tam a mam score napr:
Umrel: 20 | Zabil: 40 a odpoji se, hrac co se pripoji a dostane id 0 ma stejnou statistiku v textdrawu dokud nezabije/neumre. Postnu vam vse, jak to mam.
News
new Text:Baner[MAX_PLAYERS];
new zabil[MAX_PLAYERS];
new umrel[MAX_PLAYERS];
forward
forward pag();
TD
for(new u=0;u {
Baner[u] = TextDrawCreate(2,435, "~r~[Red] ~w~vs ~g~[Green] ~w~I ~y~Kills~w~: 0 I ~y~Deaths~w~: 0 I ~y~Teamkills~w~: 0 I ~y~Ratio~w~: 0.00 I ~r~mode by~w~: ~p~Sk[Cz");
TextDrawFont(Baner[u],3);
TextDrawColor(Baner[u], COLOR_WHITE);
TextDrawUseBox(Baner[u],1);
TextDrawLetterSize(Baner[u], 0.4, 1.2);
TextDrawBoxColor(Baner[u], COLOR_BLACK);
}
return 1;
}
Dotaz
NurofeN-Cz 0
Zdravim.. tento help pisu proto, protoze delam novy cw/tg mod.
Mam score v textdrawu (zabil %d, umrel %d, ratio %.2f).
Ale kdyz je na server hrac napr. s id 0, dueli tam a mam score napr:
Umrel: 20 | Zabil: 40 a odpoji se, hrac co se pripoji a dostane id 0 ma stejnou statistiku v textdrawu dokud nezabije/neumre. Postnu vam vse, jak to mam.
News
forward
TD
OnPlayerConnect
OnPlayerDisconnect
OnPlayerDeath
Public
Dekuji za kazdou pomoc.
Link to comment
Share on other sites
2 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