pawn-lang / sa-mp-fixes

Includes and plugins to fix various issues in the SA:MP server that can be fixed externally, leaving the devs time for other things.
135 stars 57 forks source link

FIX_OnPlayerSpawn #158

Open kolor4do opened 2 years ago

kolor4do commented 2 years ago

If you use GivePlayerMoney in OnPlayerConnect the money disappears in OnPlayerSpawn

LielR commented 2 years ago

+1.

Y-Less commented 2 years ago

This is in the questionable realm. Because you haven't even selected a class yet in OnPlayerConnect, most things aren't initialised, and many more are reset on spawn. While some people might like the money set there to remain, it isn't a defined behaviour so while it might not be what you want that doesn't mean it is a bug.