05.06.2010, 18:06
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?
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);
}
}
}