Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_RED 0xAA3333AA
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/pay", cmdtext, true, 10) == 0)
- {
- new money;
- money = GetPlayerMoney(playerid);
- if(IsPlayerInRangeOfPoint(playerid,1110.4412,-1738.2471,13.4317))return SendClientMessage(playerid,COLOR_RED,"You are too far from the gate to pay");
- if(money < 500)return SendClientMessage(playerid,COLOR_RED,"You do not have enough money");
- MoveObject(980, 1101.7249755859, -1741.2767333984, 15.273958206177,2.0);
- SetPlayerMoney(playerid, money-500);
- SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment