Quote:
Originally Posted by Alexis1999
I fixed & compiled your script
pawn Code:
CMD:buyrifle(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.7310,-38.1204,1001.5156)) { GivePlayerWeapon(playerid, 33, 1); GivePlayerMoney(playerid, -400); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.7310,-38.1204,1001.5156)) { if( GetPlayerMoney(playerid) < 400 ) return SendClientMessage(playerid, 0xFFFFFFAA, "You don't have enough money!"); } return 1; }
|
Thanks, no errors! +rep for you.