Jump to content
  • 0




5 answers to this question

Recommended Posts

[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));




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", "");






    SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

return 1;


return 1;


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

Link to comment
Share on other sites

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.