Advertisement
mrdrifter

Untitled

Feb 19th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. forward StartVote();
  2. public StartVote()
  3. {
  4. mVote[vOdliczanka] --;
  5.  
  6.  
  7. if(mVote[vOdliczanka] <= 0)
  8. {
  9. KillTimer(mVote[TimerGlosowanie]);
  10.  
  11. if(mVote[glos][0] > mVote[glos][1])
  12. {
  13. format(mVote[votebuffer], 155, "~b~~h~~h~~h~Glosowanie!~n~~w~~h~%s~n~~g~~h~Tak! ~w~~h~%d glosow", voteQuestion, mVote[glos][0]);
  14. } else if(mVote[glos][0] < mVote[glos][1]) {
  15. format(mVote[votebuffer], 155, "~b~~h~~h~~h~Glosowanie!~n~~w~~h~%s~n~~r~~h~Nie! ~w~~h~%d glosow", voteQuestion, mVote[glos][1]);
  16. } else if(mVote[glos][0] == mVote[glos][1]) {
  17. format(mVote[votebuffer], 155, "~b~~h~~h~~h~Glosowanie!~n~~w~~h~%s~n~~p~~h~~h~Remis! ~w~~h~%d glosow razem", voteQuestion, mVote[glos][0] + mVote[glos][1]);
  18. }
  19.  
  20. for(new x, g = GetMaxPlayers(); x != g; x++)
  21. {
  22. if(!IsPlayerConnected(x)) continue;
  23.  
  24. SetPVarInt(x, "Glosowal", 0);
  25. }
  26.  
  27. SetTimer("ZamknijTD", 5000, false);
  28. mVote[vOdliczanka] = 0;
  29. } else {
  30. format(mVote[votebuffer], 155, "~b~~h~~h~~h~Glosowanie!~n~~w~~h~%s~n~~g~~h~/Tak:~w~~h~ %d ~p~~h~|| ~r~~h~/Nie:~w~~h~ %d~n~~w~~h~Koniec pytania za ~r~~h~%d sek", voteQuestion, mVote[glos][0], mVote[glos][1], mVote[vOdliczanka]);
  31. }
  32.  
  33. TextDrawSetString(mVote[TDVote][0], mVote[votebuffer]);
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement