IsPlayerInRangeOfPoint , Did I write anything wrong? :O
#1

Hello!
Here is my filescript...I added the "IsPlayerInRangeOfPoint" but I can still use it EVERYWHERE...Can someone help me?

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/buygun", cmdtext, true, 10) == 0)
    {
		if(IsPlayerInRangeOfPoint(playerid, 7.0, 308.300964, -141.459930, 999.601562) || IsPlayerInRangeOfPoint(playerid, 7.0, 290.171539, -109.775894, 1001.515625) || IsPlayerInRangeOfPoint(playerid, 7.0, 311.941711, -166.140777, 999.601013)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in the Ammunation!");
		else
        {
        ShowPlayerDialog(playerid,160,DIALOG_STYLE_LIST,"Weapon System [By Gregory]","Brass Knuckles\nGolf Club\nNightstick\nKnife\nBaseball Bat\nShovel\nSprayCan\nPool Cue\nKatana\nChainsaw\nDouble-ended Dildo\nDildo\nVibrator\nSilver Vibrator\nFlowers\nCane\nParachute\nTear Gas\n9mm\nSilenced 9mm\nDesert Eagle\nShoutgun\nCombat Shotgun\nMicro SMG/UZI\nMP5\nAK-47\nM4\nTec-9\nCountry Rifle\nSniper Rifle","Buy","Cancel");
        return 1;
        }
    }
    if (strcmp("/prices", cmdtext, true, 10) == 0)
    {
		if(IsPlayerInRangeOfPoint(playerid, 7.0, 308.300964, -141.459930, 999.601562) || IsPlayerInRangeOfPoint(playerid, 7.0, 290.171539, -109.775894, 1001.515625) || IsPlayerInRangeOfPoint(playerid, 7.0, 311.941711, -166.140777, 999.601013)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in the Ammunation!");
   		else
        {
        SendClientMessage(playerid, COLOR_WHITE, "_____________________________________________________________________________________________");
        SendClientMessage(playerid, COLOR_WHITE, "Brass Knuckles (25$) |  Golf Club (50$) | Nightstick (100$) | Knife (200$)");
        SendClientMessage(playerid, COLOR_WHITE, "Baseball Bat (150$) | Shovel (100$) | SprayCan (500$) | Pool Cue (30$) | Katana (100$)");
        SendClientMessage(playerid, COLOR_WHITE, "Chainsaw (2000$) | Double-ended Dildo (500$) | Dildo (450$) | Vibrator (300$)");
        SendClientMessage(playerid, COLOR_WHITE, "Silver Vibrator (350$) | Flowers (10$) | Cane (30$) | Parachute (100$) | Tear Gas (1000$)");
        SendClientMessage(playerid, COLOR_WHITE, "9mm (1500$) | Silenced 9mm (1600$) | Desert Eagle (3000$) | Shotgun (2800$)");
        SendClientMessage(playerid, COLOR_WHITE, "Combat Shotgun (3500$) | Micro SMG/UZI (2500$) | MP5 (5000$) | AK-47 (4500$)");
        SendClientMessage(playerid, COLOR_WHITE, "M4 (5000$) | Tec-9 (3000$) | Country Rifle (6000$) | Sniper Rifle (7000$)");
        SendClientMessage(playerid, COLOR_WHITE, "_____________________________________________________________________________________________");
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
IsPlayerInRangeOfPoint , Did I write anything wrong? :O - by Gogorakis - 18.11.2013, 21:14
Re: IsPlayerInRangeOfPoint , Did I write anything wrong? :O - by Chrillzen - 18.11.2013, 21:16

Forum Jump:


Users browsing this thread: 2 Guest(s)