Loading players weapons
#2

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


Messages In This Thread
Loading players weapons - by Snowman12 - 08.01.2012, 23:44
Re: Loading players weapons - by Tanush123 - 09.01.2012, 00:21

Forum Jump:


Users browsing this thread: 3 Guest(s)