01.01.2009, 23:57
Can you post the .amx file? please.
~Thank you.~
~Thank you.~
if(strcmp(GangInfo[g][hqOwner], wstring, true) == 0 || GangInfo[g][hqGang] == PlayerInfo[playerid][pMember] && PlayerInfo[playerid][pRank] <= 2 || PlayerInfo[g][pLeader] == GangInfo[g][hqGang]) { new cashMoney = PlayerInfo[playerid][pCash]; if(cashMoney >= 50000) { strmid(GangInfo[g][hqName], text, 0, strlen(text), 255); PlayerChangingGangName[playerid] = 0; format(string, sizeof(string), "You have renamed your gang to %s. ", text); new money = 50000; ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid, (0 - money)); PlayerInfo[playerid][pCash] -= money; SendClientMessage(playerid, COLOR_LIGHTBLUE,string); ShowMenuForPlayer(ghqMenu0,playerid); gangRecordUpdate(); return 0; } else { PlayerChangingGangName[playerid] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE,"You can't afford to change your name."); TogglePlayerControllable(playerid,1); return 0; } } else // <------------------------ I'm the owner of the HQ, I'm rank 1, I'm the leader of the gang. And it just won't let me change the name D: { format(string, sizeof(string), "You are not the leader, %s is.",wstring); PlayerChangingGangName[playerid] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE,string); TogglePlayerControllable(playerid,1); return 0; }
if(strcmp(GangInfo[g][hqOwner], wstring, true) == 0 || GangInfo[g][hqGang] == PlayerInfo[playerid][pMember] && PlayerInfo[playerid][pRank] <= 2) { new cashMoney = PlayerInfo[playerid][pCash]; if(cashMoney >= 50000) { strmid(GangInfo[g][hqName], text, 0, strlen(text), 255); PlayerChangingGangName[playerid] = 0; format(string, sizeof(string), "You have renamed your gang to %s. ", text); new money = 50000; ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid, (0 - money)); PlayerInfo[playerid][pCash] -= money; SendClientMessage(playerid, COLOR_LIGHTBLUE,string); ShowMenuForPlayer(ghqMenu0,playerid); gangRecordUpdate(); return 0; } else { PlayerChangingGangName[playerid] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE,"You can't afford to change your name."); TogglePlayerControllable(playerid,1); return 0; } } else { format(string, sizeof(string), "You are not the leader, %s is.",wstring); PlayerChangingGangName[playerid] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE,string); TogglePlayerControllable(playerid,1); return 0; }
Originally Posted by skylord
Quote:
|
Originally Posted by Shady91
code looks a bit like a little edit of the PENLS
|
Originally Posted by FreddoX [BINMAN
]
Quote:
|