Hello need help with y_groups(/makeleader)...
#1

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...
Reply
#2

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:

pawn Код:
new gLSPDleader=-1;
Reply
#3

I need Only to set if player is in current group that's all.. So that's the thing...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)