Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. CMD:buyheal(playerid,params[])
  2. {
  3. if(!IsPlayerInRangeOfPoint(playerid,5.0,-521.8603,2593.0901,53.4141)) return SendClientMessage(playerid,COLOR_RED,"You are not in the place");
  4. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,COLOR_RED,"You don't have enough money to buy this!");
  5. SetPlayerHealth(playerid,100);
  6. GivePlayerMoney(playerid,-10000);
  7. SendClientMessage(playerid,808080,"You're successfully healed for 10000$");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement