How To Make Rank System in GM! (rep++) -
iOmar - 02.04.2012
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)
Re: How To Make Rank System in GM! (rep++) -
TzAkS. - 02.04.2012
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...
Re: How To Make Rank System in GM! (rep++) -
iOmar - 02.04.2012
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??
Re: How To Make Rank System in GM! (rep++) -
blank. - 02.04.2012
What do you expect it to do?
Ranks can be interpreted in many ways.
Re: How To Make Rank System in GM! (rep++) -
iOmar - 02.04.2012
i write above. Only i want to give me some Hints!!!
Re: How To Make Rank System in GM! (rep++) -
blank. - 02.04.2012
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 }
Re: How To Make Rank System in GM! (rep++) -
iOmar - 02.04.2012
so what about player rank vehicles??
Re: How To Make Rank System in GM! (rep++) -
blank. - 02.04.2012
Код:
public OnPlayerEnterVehicle(playerid,vehicleid)
{
new vehiclemodel = GetVehicleModel(vehicleid);
if(pInfo[playerid][pRank] < 1)
{
if(vehiclemodel == 469) // sparrow
{
RemovePlayerFromVehicle(playerid);
}
}
}
Re: How To Make Rank System in GM! (rep++) -
Reklez - 02.04.2012
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];
Re: How To Make Rank System in GM! (rep++) -
blank. - 02.04.2012
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]