How To Make Rank System in GM! (rep++)
#1

Hey Guys!!
==> I want to make rank system in my gamemodE but i don't know how to make it?? So please Can any one help please.
I want Rank System Like This:
0= Rank 1 ( Private )
50=Rank 2 (Assault)
150=Rank 3 (Corporal) (Can Drive Sea Sparrow)
350=Rank 4 (Sergeant) (Can Dive tanks and Hydra)
500=Rank 5 (Master Sergeant) (Can Drive Hunter)
800=Rank 6 (Commander) (Can Order His Team)
Reply
#2

Well is easy,you can do like admin sistem
Where you have pAdmin,add pRank or something
And on every command that you wan`t to be for rank 1 you need to add
if (PlayerInfo[playerid][pRank] >= 1)
Same for rank 2,3...
Reply
#3

Man i am New in Sa-mp Scripting. But I made my Half of GM. I need Rank Sys. Please Will you write here all explanation??
Reply
#4

What do you expect it to do?
Ranks can be interpreted in many ways.
Reply
#5

i write above. Only i want to give me some Hints!!!
Reply
#6

like TzAkS. said above, you can store the rank value somewhere per player and for each action that requires a specific rank do If(pInfo[playerid][pRank] >= <rank num>) { do stuff }
Reply
#7

so what about player rank vehicles??
Reply
#8

Код:
public OnPlayerEnterVehicle(playerid,vehicleid)
	{
	new vehiclemodel = GetVehicleModel(vehicleid);
	if(pInfo[playerid][pRank] < 1)
		{
		if(vehiclemodel == 469) // sparrow
			{
			RemovePlayerFromVehicle(playerid);
			}
		}
	}
Reply
#9

You guys just giving him more lot of trouble he didn't make a enum yet.

iOmar before copying those codes add this at the top of script after the #includes

pawn Код:
enum PlayerInfo
{
    pRank,
};
new pInfo[MAX_PLAYERS][PlayerInfo];
Reply
#10

Quote:
Originally Posted by blank.
Посмотреть сообщение
like TzAkS. said above, you can store the rank value somewhere per player and for each action that requires a specific rank do If(pInfo[playerid][pRank] >= <rank num>) { do stuff }
Quote:
Originally Posted by Reklez
Посмотреть сообщение
You guys just giving him more lot of trouble he didn't make a enum yet.

iOmar before copying those codes add this at the top of script after the #includes

pawn Код:
enum PlayerInfo
{
    pRank,
};
new pInfo[MAX_PLAYERS][PlayerInfo];
An enumeration isn't required for just one value, he can just as easily do Rank[MAX_PLAYERS]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)