25.06.2015, 23:38
Olб,
Estou utilizando este sistema de UP
Porйm quero que ele add no player " RESPEITO" ao invйs de EXP
Estou utilizando este sistema de UP
Код:
#include < a_samp > #include < foreach > forward RelogioUPs(); forward DesativarTD(); new Text:ReloginhoUP, reloginhoup; public OnGameModeInit() { ReloginhoUP = TextDrawCreate(518.000000, 4.000000, "~y~UP~p~: ~w~10~p~:~w~00"); TextDrawBackgroundColor(ReloginhoUP, 255); TextDrawFont(ReloginhoUP, 1); TextDrawLetterSize(ReloginhoUP, 0.460000, 1.799999); TextDrawColor(ReloginhoUP, -1); TextDrawSetOutline(ReloginhoUP, 1); TextDrawSetProportional(ReloginhoUP, 1); return RelogioUPs(); } public RelogioUPs() { new string[50], foicount1 = 0, TempoRelogio = 59; TempoRelogio--; if(foicount1 == 1) format(string, 50,"~y~UP~p~: ~w~9~p~:~w~%02d", TempoRelogio); else if(foicount1 == 2) format(string, 50,"~y~UP~p~: ~w~8~p~:~w~%02d", TempoRelogio); else if(foicount1 == 3) format(string, 50,"~y~UP~p~: ~w~7~p~:~w~%02d", TempoRelogio); else if(foicount1 == 4) format(string, 50,"~y~UP~p~: ~w~6~p~:~w~%02d", TempoRelogio); else if(foicount1 == 5) format(string, 50,"~y~UP~p~: ~w~5~p~:~w~%02d", TempoRelogio); else if(foicount1 == 6) format(string, 50,"~y~UP~p~: ~w~4~p~:~w~%02d", TempoRelogio); else if(foicount1 == 7) format(string, 50,"~y~UP~p~: ~w~3~p~:~w~%02d", TempoRelogio); else if(foicount1 == 8) format(string, 50,"~y~UP~p~: ~w~2~p~:~w~%02d", TempoRelogio); else if(foicount1 == 9) format(string, 50,"~y~UP~p~: ~w~1~p~:~w~%02d", TempoRelogio); else if(foicount1 == 10) format(string, 50,"~y~UP~p~: ~w~0~p~:~w~%02d", TempoRelogio); TextDrawSetString(ReloginhoUP,string); TextDrawShowForAll(ReloginhoUP); SetTimer("DesativarTD", 1000, false); if(TempoRelogio == 0) { foreach(Player, i) { //VarDeXP[i] ++; TempoRelogio = 59; } } return SetTimer("RelogioUPs", 1000, false); } public DesativarTD() return TextDrawHideForAll(ReloginhoUP); public OnGameModeExit() return KillTimer(reloginhoup);