|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: May 2010
Posts: 389
Reputation: 0
|
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 Code:
|
|
|
|
|
#2 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2009
Location: 127.0.0.1
Posts: 1,078
Reputation: 23
|
Quote:
Cheers. |
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Jan 2009
Posts: 115
Reputation: 0
|
I think it is better to do with OnPlayerUpdate. It is called when the server's or the player's stats (including weapons) change, so you can remove the weapons immediately.
pawn Code:
|
|
|
|
|
#4 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: May 2010
Posts: 389
Reputation: 0
|
Quote:
Can you guys tell me, if the way i did it is a good way, reduce lag, etc. I fixed the timer, now it's pawn Code:
It removes the weapons perfect, but is it good way of doing it? |
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jan 2009
Posts: 115
Reputation: 0
|
I think OnPlayerUpdate is better because it removes the weapon immediately and it doesn't make the server lag if you script simple operations into it as far as I know.
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I fixed the launching GTASA problem! Now the problem is in SAMP! HELP! | Moustafa | Client Support | 24 | 16/09/2012 03:01 AM |
| ResetPlayerWeapons не отбирает оружее) | Serafim_sd | Русский/Russian | 24 | 07/07/2011 06:39 AM |
| ResetPlayerWeapons for only one weapon | a-day | Help Archive | 2 | 13/10/2009 01:13 PM |
| Resetplayerweapons in area.. | Khelif | Help Archive | 1 | 12/07/2009 09:21 AM |
| ResetPlayerWeapons + GetPlayerWeaponData = slow update? | Redirect Left | Help Archive | 0 | 20/04/2009 05:11 AM |