SA-MP Forums Archive
Check If Player's 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: Check If Player's Score? (/showthread.php?tid=437847)



Check If Player's Score? - [UFM]Ryder - 17.05.2013

Hello
My server has a Neon System i want that
when player types /neon
It first check's that if player has more than 500 scores
Then it will open the neon dialog
If the player has less than 500 scores
It just says
You need to have at least 500 scores to use neon System


Re: Check If Player's Score? - GreTex - 17.05.2013

Create a timer to check if player score is or greater than 500


Re: Check If Player's Score? - [UFM]Ryder - 17.05.2013

How to Do THat?
Someone PLeasE Help Me


Re: Check If Player's Score? - Littlehelper - 17.05.2013

Quote:
Originally Posted by GreTex
Посмотреть сообщение
Create a timer to check if player score is or greater than 500
Why?...
There's no need for a timer...
OT: here is an EXAMPLE.
pawn Код:
Command:neons(playeird,params[]) {
if(GetPlayerScore(playerid) >= 500) return SendClientMessage(playerid, -1, "You don't have 500 score bro");
// showing dialog here....



Re: Check If Player's Score? - Gamer_007 - 17.05.2013

pawn Код:
Command:neons(playeird,params[]) {
if(GetPlayerScore(playerid) < 500) return SendClientMessage(playerid, -1, "You don't have 500 score bro");
// showing dialog here....
Little helper u did that if player score is less than 500 then only it will show the Dialog.I've corrected it