Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:setstatus(playerid, params[], help) {
- if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, COLOR_GREY, "Nu esti lider de factiune!");
- switch(DynamicFactions[PlayerInfo[playerid][pLeader]][fApp]) {
- case 0: SCM(playerid, COLOR_WHITE, "Acum, factiunea ta, recruteaza membrii."), DynamicFactions[PlayerInfo[playerid][pLeader]][fApp] = 1;
- case 1: SCM(playerid, COLOR_WHITE, "Acum, factiunea ta, nu mai recruteaza membrii."), DynamicFactions[PlayerInfo[playerid][pLeader]][fApp] = 0;
- }
- new query[180];
- format(query, sizeof(query), "UPDATE `factions` SET `App`='%d' WHERE `ID`='%d'", DynamicFactions[PlayerInfo[playerid][pLeader]][fApp], PlayerInfo[playerid][pLeader]);
- mysql_query(SQL, query);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment