Score_

Untitled

Aug 10th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. YCMD:setstatus(playerid, params[], help) {
  2. if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, COLOR_GREY, "Nu esti lider de factiune!");
  3. switch(DynamicFactions[PlayerInfo[playerid][pLeader]][fApp]) {
  4. case 0: SCM(playerid, COLOR_WHITE, "Acum, factiunea ta, recruteaza membrii."), DynamicFactions[PlayerInfo[playerid][pLeader]][fApp] = 1;
  5. case 1: SCM(playerid, COLOR_WHITE, "Acum, factiunea ta, nu mai recruteaza membrii."), DynamicFactions[PlayerInfo[playerid][pLeader]][fApp] = 0;
  6. }
  7. new query[180];
  8. format(query, sizeof(query), "UPDATE `factions` SET `App`='%d' WHERE `ID`='%d'", DynamicFactions[PlayerInfo[playerid][pLeader]][fApp], PlayerInfo[playerid][pLeader]);
  9. mysql_query(SQL, query);
  10. return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment