Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:bizpay(playerid, params[])
- {
- new amount;
- new businessid = GetInsideBusiness(playerid), amount;
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a business owner or you're not in a business.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_SYNTAX, "USAGE: /bizpay [amount]");
- }
- if(amount < 1 || amount > PlayerData[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- AddToTaxVault(amount);
- GivePlayerCash(playerid, -amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "* You have paid $%i in debt to the Government (( Business Tax )).", amount);
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s has paid $%i in debt to the Government (( Business Tax )).", GetRPName(playerid), amount);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement