#include <GAC>
You shouldn't make it banable, What if people are SA-MP lag bugged were the variable will set to 0 and he still has the weapon in his hand because he's lag bugged and he'll get banned.... and it should have a code were it sets the PlayerWeapon[weaponid] to 0 when he has no more ammo for it because it might bug up all you have to do is get a server side weapon with like 1 Ammo then hack the same gun and get like 100 bullets free without getting caught.
|
You shouldn't make it banable, What if people are SA-MP lag bugged were the variable will set to 0 and he still has the weapon in his hand because he's lag bugged and he'll get banned.... and it should have a code were it sets the PlayerWeapon[weaponid] to 0 when he has no more ammo for it because it might bug up all you have to do is get a server side weapon with like 1 Ammo then hack the same gun and get like 100 bullets free without getting caught.
|
public LoadWeapons(playerid)
{
new accname[128], weapon[128];
format(accname, sizeof(accname), "GP/Konta/%s.ini", GetName(playerid));
new weapons[13][2];
for(new i = 0; i < 13; i++)
{
format(weapon, sizeof(weapon), "Weapon%d", i); weapons[i][0] = djInt(accname, weapon);
format(weapon, sizeof(weapon), "Weapon%dAmmo", i); weapons[i][1] = djInt(accname, weapon);
GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]);
SetPVarInt(playerid, "Weapons", 1);
}
return 1;
}
if(IsPlayerAdmin) return 1;
I have encountered a problem.
pawn Код:
The problem is, this function bans me |
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\pawno\include\GAC.inc(124) : warning 201: redefinition of constant/macro (symbol "GivePlayerWeapon")
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\pawno\include\GAC.inc(184) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\pawno\include\GAC.inc(223) : warning 201: redefinition of constant/macro (symbol "AddPlayerClass")
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\pawno\include\GAC.inc(236) : warning 201: redefinition of constant/macro (symbol "AddPlayerClassEx")
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(439) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(440) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(441) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(442) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(443) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(444) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(445) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(446) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(439) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(440) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(441) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(442) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(443) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(444) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(445) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Valerijs\Desktop\Reinis\GTA\SAMP\gamemodes\DMSERVER.pwn(446) : warning 202: number of arguments does not match definition
dg1 = CreatePickup(352, 2,-2786.3894,245.6140,7.1875); // pickup
dg2 = CreatePickup(358, 2,-2783.9016,245.6378,7.1875); // pickup
dg3 = CreatePickup(1240, 2,-2781.6362,245.6651,7.1875); // pickup
dg4 = CreatePickup(1242, 2,-2779.3433,245.6928,7.1875); //pickup
dg5 = CreatePickup(356, 2,-2776.9600,245.7215,7.1875); // pickup
dg6 = CreatePickup(348, 2,-2774.6858,245.7489,7.1875); // pickup
dg7 = CreatePickup(336, 2,-2773.0239,245.7690,7.1875); // pickup
dg8 = CreatePickup(350, 2,-2770.7288,245.7967,7.1875); // pickup