Raised This Month: $ Target: $400
 0% 

Subplugin Submission AmmoPacks per map (like Lgk)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 09-13-2019 , 04:06   Re: AmmoPacks per map (like Lgk)
Reply With Quote #1

Not sure if that's how it's supposed to be, but consider resetting used_command[id] when id disconnects.
AmXDusT is offline
Noam
Member
Join Date: Jun 2019
Old 09-13-2019 , 04:30   Re: AmmoPacks per map (like Lgk)
Reply With Quote #2

Quote:
Originally Posted by AmXDusT View Post
Not sure if that's how it's supposed to be, but consider resetting used_command[id] when id disconnects.
nope, i have checked that.

only when map restart/change you can use it again.

Last edited by Noam; 09-13-2019 at 04:39.
Noam is offline
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 09-13-2019 , 04:59   Re: AmmoPacks per map (like Lgk)
Reply With Quote #3

Quote:
Originally Posted by Noam View Post
nope, i have checked that.

only when map restart/change you can use it again.
Let's say you're in-game. You use your command and get the free ammos and then you leave.
Another player joins, he hasn't used that command yet. He writes the command but plugin tells him "you've already used", because his id will be the same as previous player's.

You should reset "used_command" when player disconnects ( or joins the server ) and check whether a player has used command by steamid or name. You should use tries for that.
AmXDusT is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode