SA-MP Forums Archive
Trying to make won system by score. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Trying to make won system by score. (/showthread.php?tid=636793)



+Rep to helpers. - CheckItOut - 04.07.2017

Close the thread


Re: Trying to make won system by score. - saffierr - 04.07.2017

And now in English please? What are you trying to say?


Re: Trying to make won system by score. - CheckItOut - 04.07.2017

Quote:
Originally Posted by saffierr
Посмотреть сообщение
And now in English please? What are you trying to say?
I try to make system when team got 100 score the server do restart and say the team won.

the code ok for this or not please? you can help me make this?


Re: Trying to make won system by score. - Ballu Miaa - 04.07.2017

pawn Код:
if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 100))
You're getting the Player's Score here and you need a different global variable for Team's score.

Increment it when you want, check if its 100 or not > Then GMX. You must start leaning the concept to code yourself.


Re: Trying to make won system by score. - CheckItOut - 04.07.2017

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
pawn Код:
if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 100))
You're getting the Player's Score here and you need a different global variable for Team's score.

Increment it when you want, check if its 100 or not > Then GMX. You must start leaning the concept to code yourself.
I don't know what to do with this code... Need your help brother


Re: Trying to make won system by score. - Kaperstone - 04.07.2017

Then don't code.

You need to understand what you code, not just take what other people do for you.
We're not code machines for anyone, people are willingly helping you to understand the code, not generate it for you.