So okay now I got qestion about y_groups loaded by groupid.
#1

hello I need help about groupid settings..

I have multiple gangs and I want to do it with cmd /setleader
I have saving system and everything for gang members.

But How I can do it like to get player in group by Group:Bloodz.

I need to set Group:Bloodz to some nummber like nummber 1.. How I can do it and how I can input it in setleader cmd!

YCMDetleader id fanctionid I have this cmd:

pawn Код:
YCMD:makeleader(playerid, params[],help)
{
    new targetid, factionid, string[128], targetname[24], playername[24];
    if(sscanf(params, "ui", targetid, factionid)) return SendClientMessage(playerid, -1, "Usage: /makeleader [playerid][factionid]");
    if(pInfo[playerid][Admin] != 6) return SendClientMessage(playerid, -1, "You are not an admin");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "Invalid playerid!");
    if(0 < factionid < 12)  
    {
        GetPlayerName(playerid, playername, sizeof(playername));
        GetPlayerName(targetid, targetname, sizeof(targetname));
        format(string, sizeof(string), "You made %s leader of faction id %i!", targetname, factionid);
        SendClientMessage(playerid, -1, string);
        format(string, sizeof(string), "You were made leader of faction id %i by %s", factionid, playername);
        SendClientMessage(playerid, -1, string);
        GangInfo[playerid][GangID] = factionid;
        GangInfo[playerid][GangLeader] = 6;
    }
    else return SendClientMessage(playerid, -1, "Invalid factionid.  Factionid's: 1-12");
    return 1;
}
Here is my group list

pawn Код:
new
    Group:Bloodz,
    Group:Crips,
    Group:Vagos,
    Group:Varios,
    Group:Rifa,
    Group:IMafia,
    Group:CMafia,
    Group:RMafia,
    Group:DaNBoys,
    Group:Bikers,
    Group:Drifters,
    Group:StreetRacers,
    Group:Police,
    Group:Army,
    Group:FBI,
    Group:Medics,
    Group:Cadets,
    Group:Truckers,
    Group:Mehanics,
    Group:Piza,
    Group:Trash,
    Group:GunDealers,
    Group:DrugMakers,
    Group:DrugDealers,
    Group:Lawyer,
    Group:Judge,
    Group:Witnesses,
    Group:Accused,
    Group:Jury,
    Group:Civilian
;
So maybe can help me out with this

With best Regards Scrillex!
Reply
#2

I really needed this.. My progress this 2 days are been owesome.. Now I want to do it.. and go to bed.. Because this is almost 48 h without sleep.. Pls guys.. Someone give me some point where to stop and think.. Because now it's hard to think off something.

I'm to exited to go to bed..

Sorry about my bad english now I ain't trying to wrote properly..

And sorry for bump.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)