Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:buyheal(playerid,params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid,5.0,-521.8603,2593.0901,53.4141)) return SendClientMessage(playerid,COLOR_RED,"You are not in the place");
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,COLOR_RED,"You don't have enough money to buy this!");
- SetPlayerHealth(playerid,100);
- GivePlayerMoney(playerid,-10000);
- SendClientMessage(playerid,808080,"You're successfully healed for 10000$");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement