27.07.2012, 10:09
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))
{
GetPlayerMoney(playerid) <400);
SendClientMessage(playerid, 0xFFFFFFAA, "You don't have enough money!");
}
return 1;
}