Jetpack bans or kicks ~ + Spec
#2

Open GrandLARC

Code:
public OnPlayerUpdate(playerid)
{
	if(!IsPlayerConnected(playerid)) return 0;
	
	// changing cities by inputs
	if( !gPlayerHasCitySelected[playerid] &&
	  GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
	  ClassSel_HandleCitySelection(playerid);
	  return 1;
	}
	
	if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
	  Kick(playerid);
	  return 0;
	}
	
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	  Kick(playerid);
	  return 0;
	}

	return 1;
}
Remove
Code:
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	  Kick(playerid);
	  return 0;
	}
Reply


Messages In This Thread
Jetpack bans or kicks ~ + Spec - by [LL]InstabiC - 02.09.2009, 08:01
Re: Jetpack bans or kicks ~ + Spec - by pliva_sb - 02.09.2009, 08:05
Re: Jetpack bans or kicks ~ + Spec - by dugi - 02.09.2009, 08:08
Re: Jetpack bans or kicks ~ + Spec - by [LL]InstabiC - 02.09.2009, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)