/accept invite?
#2

pawn Код:
COMMAND:acceptgang(playerid, params[])
{
    new str[128];
        if(PlayerStat[playerid][BeingInvitedToGang] == 0) return SendClientMessage(playerid, GREY, "Nobody invited you to join a gang.");
        PlayerStat[playerid][GangID] = PlayerStat[playerid][BeingInvitedToGang];
    PlayerStat[playerid][GangRank] = 1;
        PlayerStat[playerid][BeingInvitedToGang] = 0;
        format(str, sizeof(str), "%s has accepted to join %s, Welcome!", GetName(playerid), GangStat[PlayerStat[playerid][GangID]][GangName]);
    SendGangMessage(playerid, GangStat[PlayerStat[playerid][GangID]][Color], str);
    GangStat[PlayerStat[playerid][GangID]][Members] += 1;
    format(GangStat[PlayerStat[playerid][GangID]][GangFile], 60, "Gangs/Gang %d.ini", PlayerStat[playerid][GangID]);
    SaveGang(GangStat[PlayerStat[playerid][GangID]][GangFile]);
    SavePlayerGangInfo(playerid);
    return 1;
}
Try this. You need ZCMD / SSCANF2
Just remplace the "Gang" words by something else and enjoy
Reply


Messages In This Thread
/accept invite? - by Pawnie - 31.08.2013, 15:46
Re : /accept invite? - by 1Geek - 31.08.2013, 15:53
Re: /accept invite? - by Dragonsaurus - 31.08.2013, 16:08
Re : Re: /accept invite? - by 1Geek - 31.08.2013, 19:06
Re: /accept invite? - by Pawnie - 31.08.2013, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)