13.01.2010, 19:37
Fixed:
pawn Код:
if(strcmp(cmd, "/buyspas", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 2497.49,-1703.31,1014.74))
{
if(GetPlayerMoney(playerid) > 40000) {
GivePlayerWeapon(playerid, 27, 25000);
GivePlayerMoney(playerid, -40000);
SendClientMessage(playerid, 0xF0F8FFAA, "You bought a spas for $40,000.");
}
}
if(!GetPlayerMoney(playerid) > 40000) {
SendClientMessage(playerid, 0xF0F8FFAA, "You do not have enough money to purchase this gun.");
}
if(!IsPlayerInRangeOfPoint(playerid, 2, 2497.49,-1703.31,1014.74))
{
SendClientMessage(playerid, 0xF0F8FFAA, "You can not purchase a weapon from here.");
}
return 1;
}