29.09.2013, 21:05
Quote:
well another question!
what if you removed the: Warns == 0 from OnPlayerConnect, what would be happen ? does this cause of saving the warns to the player till he reconnect ? i mean if he quit the game with (2/3) of warnings, would he have 2 warnings if he rejoined ? |
John joins the server, with in-game ID 3
John receives 1 warning for bad language
John receives 1 warning for spawn killing
John leaves the game with 2/3 warns
Steve joins the server, with in-game ID 3
Steve has 2/3 warnings already from when John was on the server.
The warnings save on the ID, not the name. If you want to save it on the name, you'll have to put it into a user file.