23.04.2012, 01:10
Ban them? You just send a message, you don't actually ban them.
Also, omit parachutes from checks as they can get them from aircraft:
if(weap > 0 && Weapon[i][weap] == false)
->
if(weap > 0 && weap != WEAPON_PARACHUTE && Weapon[i][weap] == false)
Also you should change
if(GetPlayerState(i) == 1 || GetPlayerState(i) == 2 || GetPlayerState(i) == 3) {
to
if(GetPlayerState(i) >= 1|| GetPlayerState(i) <= 3)
{
A. Move the bracket down to keep your code clean
B. Saved one check
Also, omit parachutes from checks as they can get them from aircraft:
if(weap > 0 && Weapon[i][weap] == false)
->
if(weap > 0 && weap != WEAPON_PARACHUTE && Weapon[i][weap] == false)
Also you should change
if(GetPlayerState(i) == 1 || GetPlayerState(i) == 2 || GetPlayerState(i) == 3) {
to
if(GetPlayerState(i) >= 1|| GetPlayerState(i) <= 3)
{
A. Move the bracket down to keep your code clean
B. Saved one check