22.10.2017, 12:44
Quote:
Generally speaking, giving players their weapons when they connect is probably a bad idea. Instead, give the weapons to them after spawn. So instead of OnPlayerConnect, try OnPlayerSpawn.
To get the weapon data before they disconnect, read this. To store the weapon data: Код:
INI_WriteInt(File,"oSlot1",PlayerInfo[playerid][pWeapon0]); INI_WriteInt(File,"Ammo0",PlayerInfo[playerid][pAmmo0]); // Remember to change the variable names to whatever your variable names are. Код:
GivePlayerWeapon(playerid,PlayerInfo[playerid][pWeapon0],PlayerInfo[playerid][pAmmo0]); |