Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. CMD:lockhq(playerid, params[]) {
  2. if(PlayerInfo[playerid][pLeader] == 0) return 1;
  3. new i = PlayerInfo[playerid][pLeader];
  4. if(DynamicFactions[i][fLock] == 0) DynamicFactions[i][fLock] = 1;
  5. else DynamicFactions[i][fLock] = 0;
  6. SendClientMessage(playerid, 0xFFADADFF, "Modificari actualizate!");
  7. Delete3DTextLabel(DynamicFactions[i][fLabel]);
  8. new query[128], label[128];
  9. format(query, sizeof(query), "UPDATE `factions` SET `Lock`='%d' WHERE `ID`='%d'", DynamicFactions[i][fLock], i);
  10. mysql_tquery(SQL, query, "", "");
  11. format(label, sizeof(label), "%s's HQ\n(%s)", DynamicFactions[fName], (DynamicFactions[fLock] == 0) ? ("Locked") : ("UnLocked"));
  12. DynamicFactions[fLabel] = Create3DTextLabel(label,COLOR_WHITE,DynamicFactions[extX], DynamicFactions[extY],
  13. DynamicFactions[extZ],20.0, 0, 1);
  14. return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement