Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ShowFactions(playerid) {
- new szDialog[MAX_STRING], szDialog2[MAX_STRING];
- format(szDialog, sizeof(szDialog), "{FFFFFF}ID\tName\tMembers\tMaxim Members\n{FFFFFF}1\t%s\t%d\t%d\n", DynamicFactions[1][fName], GetFactionMembers(1), DynamicFactions[1][fMaxMembers]);
- strcat(szDialog2, szDialog);
- de la showfactions pui asta in locul primei iti dai si tu seama acolo
- CMD:paydaymoney(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- new fid,money,string[MAX_STRING];
- if(sscanf(params, "dd",fid,money)) return SendClientMessage(playerid, 0xFFFFFFFF, "{AB0000}Usage: {FFFFFF}/paydaymoney <Faction ID> <Money>");
- if(money > 0 && money <= 500000)
- {
- if(fid > 0 && fid <= 14)
- {
- if(fid == 7) return SendClientMessage(playerid, COLOR_WHITE,"Aceasta factiune nu mai exista.");
- DynamicFactions[fid][fPaydayMoney] = money;
- mysql_format(SQL, string, sizeof(string), "UPDATE `factions` SET `PaydayMoney`='%d' WHERE `ID`='%d'",DynamicFactions[fid][fPaydayMoney], fid);
- mysql_tquery(SQL,string,"","");
- format(string, sizeof(string), "Acum factiunea %s primeste $%s la PayDay in seif.",DynamicFactions[fid][fName], FormatNumber(DynamicFactions[fid][fPaydayMoney]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else return SendClientMessage(playerid, COLOR_WHITE,"Faction ID must be between 1 and 14.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE,"Money must be between $1 and $500,000.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
- }
- return 1;
- }
- inlocuieste o cu cea veche asta e putin imbunatatita
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement