Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:givemoney(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_LGREEN, "Nu ai acces la aceasta comanda!");
- {
- new money,id,string[256],sendername[25],giveplayer[25];
- if(sscanf(params, "ui",id,money)) return SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/givemoney <playerid/name> <amount>");
- if(IsPlayerConnected(id))
- {
- GivePlayerCash(id, money);
- GetPlayerName(id, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 256, "AdmCmd: Admin %s i-a trimis $%s lui %s.", sendername,FormatNumber(money),giveplayer);
- SendAdminMessage(COLOR_LOGS,string,5);
- format(string, 256, "AdmCmd: Admin %s has send money $%s to %s.", sendername,FormatNumber(money),giveplayer);
- Adminlog(string);
- Update(id, pCashx);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement