Quote:
Originally Posted by Onedda
Only tried this yesterday, its pretty good but don't know if any one else has had this but a random player had to disconnect as he had info ammo even though i never put it on him ? is it a bug or just 1 of those things?
SM 1.4.0
MM1.9.0
Windows server
cheers
Onedda
|
Going back over my code I can only take a guess.
This part of the code:
Code:
if (ison || fiammo[i])
is suppose to prevent anyone who doesn't have infinite ammo from receiving it, sm_fia_all and sm_fia_roundwin switch the ison to allow infinite ammo for everyone, and fiammo[i] checks for individual allowances from the command.
The best I can guess is that you enabled infinite ammo on someone, they left, then someone entered and took their spot, giving that person infinite ammo.
I added code to set infinite ammo on a client to 0 on disconnect
Code:
public OnClientDisconnect(client)
{
fiammo[client] = 0;
}
Please try it out and tell me if it happens again