SA-MP Forums Archive
I need 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need rank system (/showthread.php?tid=150789)



I need rank system - Montis123 - 27.05.2010

Hello I need rank system.

need for such a system to keep everything scriptfiles directory.

Well I need that apartment (DM) server system.

Please give me a system where you have.


Re: I need rank system - Chrisspartan - 27.05.2010

Try the 'SEARCH' button.
Anyways i found this 1.
http://forum.sa-mp.com/index.php?topic=147788.0


Re: I need rank system - Montis123 - 27.05.2010

I have one question in all this but script tool scriptfiles protected folder?


Re: I need rank system - omgunoobjk - 27.05.2010

Heres what I would do

1. Find a stats saving system (Must Save Score. I like LuxAdmin [Search For It]), most admin systems that have a Register function save stats.

2. Do the following code to set ranks

Top Of Script:
Код:
new rank1;
Under OnPlayerConnect
Код:
public OnPlayerConnect(playerid)
{
if(GetPlayerScore(playerid) > 250)          --- 250 = Needed Score For Rank 1
{
Rank1 = 1;
}
}
Under OnPlayerSpawn - Example, not really needed.. but good!
Код:
public OnPlayerConnect(playerid)
{
if(rank1 == 1)
{
//HERE, Put stuff that only rank 1 can get. Since currently you need 250 score for rank 1.. Maybe you //could do: 
GivePlayerWeapon(playerid, 38, 2923);
}
}
}