Set negative frag/score
Setting negative score/frag to the player just won't work with either set_user_frags or Ham_AddPoints way.
Doing it with Ham_AddPoints sets the player's score back to 0 (using a plugin which force the score to not go to a negative value), doesn't matter how high score the player had. And without checking the user frags, it crash the server instantly when the event gets called. Code:
|
Re: Set negative frag/score
PHP Code:
|
Re: Set negative frag/score
Last argument of AddPoints is bool:bAllowNegativeScore, so if you set it to false, it's normal it doesn't work, you have to set it to true.
|
Re: Set negative frag/score
Messed around with false and true to see if it even worked to give the player score, forgot to mention that.
That's why it is at "false" now. Still crashing with "true". |
Re: Set negative frag/score
Tried ExecuteHamB(Ham_AddPoints, id, -2, true) and it works fine.
|
| All times are GMT -4. The time now is 20:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.