Sending Messages of players within a range
#7

I will simply add the entire command if that is alright.

pawn Код:
if(strcmp(cmdtext, "/sweapons", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 6, -343.3916,1542.1134,75.5625))
        {
            new str[128];
            new ProxDetector;
            GetPlayerName(playerid, str, sizeof(str));
            format(str, sizeof(str), "* %s has been seen grabbing weaponry from Soviet's weapon box!", str[4]);
            ProxDetector(10.0, playerid, str, 0x808080FF, 0x808080FF, 0x808080FF, 0x808080FF, 0x808080FF);
            return 0;
            AC_GivePlayerWeapon(playerid, 24, 999999);
            AC_GivePlayerWeapon(playerid, 30, 999999);
            AC_GivePlayerWeapon(playerid, 17, 15);
            AC_GivePlayerWeapon(playerid, 29, 999999);
            AC_GivePlayerWeapon(playerid, 4, 999999);
            AC_GivePlayerWeapon(playerid, 34, 1);
            SendClientMessage(playerid, 0x00FFFFFF, "Your weapons have been refilled successfully!");
            return 1;
        }

        else
        {
            SendClientMessage(playerid, 0xAFAFAFAA, "You must be at Soviet's Weapon Spawn Location to use this command.");
            return 1;
   }
The first line of the script is 1112, the last being 1136

EDIT: I thought I found the error, but I did not, I fixed it, and the errors moved to line 1120, the ProxDetector.
Reply


Messages In This Thread
Sending Messages of players within a range - by nmader - 20.11.2011, 23:52
Re: Sending Messages of players within a range - by =WoR=G4M3Ov3r - 20.11.2011, 23:59
Re: Sending Messages of players within a range - by Calgon - 21.11.2011, 00:00
Re: Sending Messages of players within a range - by Sinc - 21.11.2011, 00:06
Re: Sending Messages of players within a range - by nmader - 21.11.2011, 00:22
Re: Sending Messages of players within a range - by =WoR=G4M3Ov3r - 21.11.2011, 00:25
Re: Sending Messages of players within a range - by nmader - 21.11.2011, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)