29.03.2014, 05:33
pawn Код:
CMD:buy(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z) // Change the range and the x, y, z to the position that you desire!
{
GivePlayerWeapon(playerid, 14, 300);
GivePlayerMoney(playerid, -money);
SendClientMessage(playerid, -1, "You've successfully purchased the flowers!.");
}
return 1;
}