weapon
#1

Hi.
How can i make that the player weapons save if he disconnects?
and if he login in, he become again his weapons what he have before the disconnects.

I have already done all, but i only need the weapon save.

Reply
#2

You'll need to create a file to save the player's weapons. You could use dudb. Search around.
Reply
#3

yea i have already dudb, dini, dutils.
i make it with dudb.

But how can i save the weapons...
i have all done for example my moneys save, level save etc.
Reply
#4

Do the same with the weapons. Just edit the SetPlayerMoney to GivePlayerWeapon etc.
Reply
#5

Save their weapons with file functions (https://sampwiki.blast.hk/wiki/File_Functions).
Reply
#6

Quote:
Originally Posted by cοοp
Do the same with the weapons. Just edit the SetPlayerMoney to GivePlayerWeapon etc.
okay that i already know.
but how i get the weapons from the player?
Reply
#7

GetPlayerWeaponData();
Reply
#8

off course i get it like this..

but accurate?
Reply
#9

Post your money thingy. Then I will do it for you.
Reply
#10

save if disconnect:

pawn Код:
if(Logged[playerid] == 1)
{
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
}
login:

pawn Код:
GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money"));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)