-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rg_drop_item #264
Comments
You used rg_remove_item, anyway rg_drop_item always return TRUE (1) here: cell AMX_NATIVE_CALL rg_drop_item(AMX *amx, cell *params) Engine of ReGameDLL_CS do not care if player has item or not, just force the entity to drop it. Same bug on rg_remove_all_items |
Thank you very much for the answer, if the function still returns true for rg_drop_item and as you say the engine doesn't care, then the return value is not needed for this function, it really throws into confusion. Especially the description. I am satisfied with the answer, thanks again! |
What exactly you need to do? If it is a type of item restriction, you can reach same result with PlayerHasRestrictItem. It check when player buy, touch or be equipped by an item.
|
After merging PR: #289, the returned values will be correct |
Closed as fixed #289 |
Function returns true in any case, whether there is a gun or not.
Hello, I am concerned about the operation of this function.
Let me remind you about her description:
Version
Thank you in advance for the answer if I misunderstood something.
Additional
I replaced it with the remove_item function, it works perfectly, but the problem with rg_drop_item still remains.
The text was updated successfully, but these errors were encountered: