SA-MP Forums Archive
[FilterScript] Simple Rank System - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple Rank System (/showthread.php?tid=288914)



Simple Rank System - wumpyc - 09.10.2011

I made simple RANK SYSTEM using textdraw.
PHP код:
#define RANK1NAME "You are ~y~Newbie"//change name the way you wont(RANK1)
#define RANK2NAME "You are ~y~Killer"//change name the way you wont(RANK2)
#define RANK3NAME "You are ~y~Gangstar"//change name the way you wont(RANK3)
#define RANK4NAME "You are ~y~The Boss"//change name the way you wont(RANK4)
#define RANK1SCOREa 0 // you are rank1 from 0 score
#define RANK1SCOREb 99 // to 99 score
#define RANK2SCOREa 100// you are rank2 from 100 score
#define RANK2SCOREb 249// to 249 score
#define RANK3SCOREa 250// you are rank3 from 250 score
#define RANK3SCOREb 999// to 999 score
#define RANK4SCORE 1000// you are rank4 from 1000+ score 
A
|
TOP OF SCRIPT

SCREENSHOTS:
<-- CLICK ON THEM TO SE THEM BIGGER





DOWNLOAD
and
PASTEBIN


Re: Simple Rank System - skullmuncher1337 - 09.10.2011

It's good, but why do people insist on using OnPlayerUpdate? It would be better to put that stuf in at timer that runs every 500ms or even 100ms or something.


Re: Simple Rank System - GrimR - 09.10.2011

You think a timer would be more effecient?

I assume OnPlayerUpdate is executed more often than that then, but also I hear that a number of timers can make things bugger?


Re: Simple Rank System - DRIFT_HUNTER - 09.10.2011

Why not make a hook to SetPlayerScore?
No need for timers and other sheet....


Re: Simple Rank System - wumpyc - 10.10.2011

Quote:
Originally Posted by skullmuncher1337
Посмотреть сообщение
It's good, but why do people insist on using OnPlayerUpdate? It would be better to put that stuf in at timer that runs every 500ms or even 100ms or something.
you can set on timer if you wont but as grimr said that to much timers can make buggs


Respuesta: Simple Rank System - [Nikk] - 04.11.2011

Good job Wumpyc. !
PD: Im [Nikk] In European Trucking xD


Re: Simple Rank System - Postalityjr - 05.11.2011

Doesn't adding timer's just go harder on your CPU/Server?
Anyway; It look's good , the only thing I don't like about it is that it's a big textdraw. Maybe make it a little smaller?


Re: Simple Rank System - Astralis - 18.11.2011

nice ranks. I like that down the hp 'the boss'