SA-MP Forums Archive
NEED HELP - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NEED HELP (/showthread.php?tid=190998)



NEED HELP - antsolen - 17.11.2010

Need help for score system how i can make score system what saves to gAdmin script. 2 minute driving with car is 1 score and evry 25k is 1 score ?

IM BAD ENGLISH >&


Re: NEED HELP - Zh3r0 - 17.11.2010

You can use some filterscript I've seen somewhere around this forum, that gets the distance traveled.
As for the money, just use
pawn Код:
if ( GetPlayerMoney( playerid ) > 25000 ) {SetPlayerScore( playerid, GetPlayerScore( playerid ) + 1 );   }
Use a variable to check, because this can give score even if you have over $25.000.


Re: NEED HELP - antsolen - 17.11.2010

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
You can use some filterscript I've seen somewhere around this forum, that gets the distance traveled.
As for the money, just use
pawn Код:
if ( GetPlayerMoney( playerid ) > 25000 ) {SetPlayerScore( playerid, GetPlayerScore( playerid ) + 1 );   }
Use a variable to check, because this can give score even if you have over $25.000.
Im getting errors :

Код:
C:\Documents and Settings\Andero\Desktop\Server\gamemodes\Stunters.pwn(550) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: NEED HELP - Zh3r0 - 17.11.2010

Let me see the line please.