resetplayerweapons problem
#1

I want to make it so if a player is in jail, it resets there weapons over and over, so hackers cannot spawn weapons in jail.

I tested it, and for some reason, it allows the weapons to be used for a couple of seconds then it resets them

Is this a good efficient way?

pawn Код:
forward JailedResetWeapons();

SetTimer("JailedResetWeapons",1000,1);

public JailedResetWeapons()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(Jailed[i] == 1)
    {
    ResetPlayerWeapons(i);
    }
}
}
Reply


Messages In This Thread
resetplayerweapons problem - by MWF2 - 05.06.2010, 18:06
Re: resetplayerweapons problem - by DeathOnaStick - 05.06.2010, 18:14
Re: resetplayerweapons problem - by LTomi - 05.06.2010, 18:18
Re: resetplayerweapons problem - by MWF2 - 05.06.2010, 18:26
Re: resetplayerweapons problem - by LTomi - 05.06.2010, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)