anti armour
#1

Code:
public Hack(playerid)
{
	if (AccountInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	}
	else
	{
    // i dont know what i have to enter here
	}
}
Code:
//public OnGameModeInit()
 SetTimer("Hacktimer", 3000, 1);
can someone help me?
i want that if a player have more than 1 armour get kicked and admin not (you see in code)
Reply
#2

pawn Code:
//OnGameModeInit
SetTimer("Hack", 3000, true);
pawn Code:
forward Hack();
public Hack()   for(new i, Float:fl; i < MAX_PLAYERS; i++)
                    if((AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i)) == false)
                        if(GetPlayerArmour(i, fl) && fl > 0.0) Kick(i);
Reply
#3

i see my error but how to use it that the admin wont kicked ...
Code:
public Hack()
{
  for(new i, Float:fl; i < MAX_PLAYERS; i++)
  {
     if((AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i)) == false)
 	 {
 	 }
 	 if(GetPlayerArmour(i, fl) && fl > 0.0)
 	 {
 	 Kick(i);
 	 }
  }
  return 1;
}
Reply
#4

done by myself ~CLOSED~
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)