Thread: [Subplugin Submission] AmmoPacks per map (like Lgk)
View Single Post
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 09-13-2019 , 04:59   Re: AmmoPacks per map (like Lgk)
Reply With Quote #5

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