09.01.2012, 00:21
Do you exactly make weapons save on disconnect? if so under your onplayerdisconnect add
you must have some strval field on player log so something like
and onplayerspawn
hope you get me xD
pawn Code:
format(query,sizeof(query),"UPDATE acc SET Weapon1 = %d",GetPlayerWeapon(playerid));
mysql_query(playerid);
pawn Code:
PlayerData[playerid][Weapon1] = strval(field[0]);
pawn Code:
GivePlayerWeapon(playerid,PlayerData[playerid][Weapon1],5000);