31.08.2013, 15:53
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;
}
Just remplace the "Gang" words by something else and enjoy