Hello need help with y_groups(/makeleader)... - 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)
+--- Thread: Hello need help with y_groups(/makeleader)... (
/showthread.php?tid=417688)
Hello need help with y_groups(/makeleader)... -
TrueForYourSelf - 22.02.2013
So here is my group list... But the problem is I don't know how to make a /makeleader command... I need some boost from you guys.. Just don't know where to start... Looked in old dini /makeleader and yeh still find nothing... (What could helped me to understand how to set them.)
pawn Код:
new
Group:gLSPD,
Group:gFBI,
Group:gCadet,
Group:gMedics
;
SO here is my saving system
pawn Код:
enum PlayerInfo
{
Pass[129],
Admin,
VIP,
Money,
Scores,
Kills,
Deaths,
Sex,
Member,
Leader
}
new pInfo[MAX_PLAYERS][PlayerInfo];
So maybe you can give me the right tracks from where to start...
Thank you for your response...
Re: Hello need help with y_groups(/makeleader)... -
DrDoom151 - 22.02.2013
If I were you I'd make an enum/variable for the group, to store the current leader in playerid.
If you plan on storing just a single thing for the group, it might be fine to just use a single variable, if you're going to store more info per group, I'd just throw it in an enum.
For example:
Re: Hello need help with y_groups(/makeleader)... -
TrueForYourSelf - 22.02.2013
I need Only to set if player is in current group that's all.. So that's the thing...