Jump to content
  • 0

Comanda /wipeallhouses va org !!


Nica_Mihai

Question

5 answers to this question

Recommended Posts

  • 0

CMD:wipeallhouses ( playerid, params[] ) {
    if(PlayerInfo [ playerid ] [ pAdmin ] < 6 ) return SCM( playerid, -1, "Nu esti un fondator!");
    mysql_tquery( SQL, "UPDATE `houses` SET `Owner` = 'AdmBot', `Discription` = 'Casa de vanzare, una la leu!', `Value` = '-1', `BuyPrice` = '-1', `Owned` = '0' WHERE 1", "", "" ); 
    SCM(playerid, -1, "Ai mutat toate casele pe AdmBot.");
    new sendername[30], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof string, "AdmCmd: %s a mutat toate biz-urile pe AdmBot!", sendername);
    ABroadCast(COLOR_ORANGE, string, 7); 
    SCM(playerid, -1, "Acum toate casele nu mai au proprietari!");
    return true; }

Edited by .LemMon
Link to comment
Share on other sites

  • 0
41 minutes ago, .LemMon said:

CMD:wipeallhouses ( playerid, params[] ) {
    if(PlayerInfo [ playerid ] [ pAdmin ] < 6 ) return SCM( playerid, -1, "Nu esti un fondator!");
    mysql_tquery( SQL, "UPDATE `houses` SET `Owner` = 'AdmBot', `Discription` = 'Casa de vanzare, una la leu!', `Value` = '-1', `BuyPrice` = '-1', `Owned` = '0' WHERE 1", "", "" ); 
    SCM(playerid, -1, "Ai mutat toate casele pe AdmBot.");
    new sendername[30], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof string, "AdmCmd: %s a mutat toate biz-urile pe AdmBot!", sendername);
    ABroadCast(COLOR_ORANGE, string, 7); 
    SCM(playerid, -1, "Acum toate casele nu mai au proprietari!");
    return true; }

Nu totul se rezolva prin copy-paste, o sa ai buguri la comanda asta daca tu ai conturi inregistrate, iar aceia au casa.

#retras

Link to comment
Share on other sites

  • 0

Daca faci cum a zis lemon, o sa ai bug la users la cei ce detineau  acea casa, asa ca trebuie sa faci si acolo un update in users unde seteaza house pe 0 sau housekey, cum ai tu in baza de date

Edited by AlexxAdv
Link to comment
Share on other sites

  • 0

nu se cer scripturi incerci si daca ai erori noi te ajutam.

ON: poti folosi 2 instructiuni mysql

update houses set owner = 'the state', forsale = 0

si

update users set housekey = 0 where housekey ! 0

traducerea o faci tu in mysql cu ghilimele virgule si tilde plus numele la variabile cum le ai in baza de date

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.