Jump to content

Question

Posted

Salut, Nu pot Posta tot asa ca am pus aici cu tot cu model. (I-am dam pm lui viorel, poate rezolva problema )

http://pastebin.com/JBRfCQAx

5 answers to this question

Recommended Posts

Posted

[pawn]CMD:giveallmoney(playerid, params[])

{

if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");

if(PlayerInfo[playerid][pAdminLevel] >= 5)

{

    new Money;

new moneyall,sendername[MAX_PLAYER_NAME],string[100];

GetPlayerName(playerid, sendername, sizeof(sendername));

if(sscanf(params, "i",moneyall)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /giveallmoney <money>");

if(moneyall >= 99999999) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Error: Too much moneys.");

else if(moneyall < 99999999)

{

format(string, sizeof(string),"{f03337}Admin %s give %s$ to all players online.",sendername,FormatMoney(moneyall));

SendClientMessageToAll(COLOR_WHITE,string);

foreach(Player,i)

{

GivePlayerMoney(i, moneyall);

PlayerInfo[ playerid ][pCash] += Money;

format(SQLString, sizeof(SQLString), "UPDATE `users` SET `Cash` = '%d' WHERE `UserName` = '%s'", PlayerInfo[ playerid ][pCash], PlayerName( playerid ));

                mysql_function_query(gHandle, SQLString, false, "SendQuery", "");

}

}

}

else

{

    SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

return 1;

}

return 1;

}[/pawn]

Cum o pot repara.. cand dau bani ii da si dupa ii ia inapoi!

Posted

Nu sunt un scripter, dar din propira experienta este vorba de un antihack pentru a evita sob-ul sau orice alt hack.

Nu sariti, doar am dat cu presupusul.

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.