21.11.2011, 00:27
I will simply add the entire command if that is alright.
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.
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;
}
EDIT: I thought I found the error, but I did not, I fixed it, and the errors moved to line 1120, the ProxDetector.