Health & Armour saving?
#1

Hello everyone, how can I save guns, ammo, health and armour before teleporting a player to another map?
And make them return once he's back, thanks.
Reply
#2

Well, there are a variaty of things you can do, but for the sake of memory I advise using pvars.
https://sampwiki.blast.hk/wiki/GetPVarFloat
https://sampwiki.blast.hk/wiki/SetPVarFloat
The two above are for floats, health and armor,
https://sampwiki.blast.hk/wiki/SetPVarInt
https://sampwiki.blast.hk/wiki/GetPVarInt
These are for other variables that are integers, weapons, ammo, etcetera.
Reply
#3

Quote:
Originally Posted by nmader
Посмотреть сообщение
Well, there are a variaty of things you can do, but for the sake of memory I advise using pvars.
https://sampwiki.blast.hk/wiki/GetPVarFloat
https://sampwiki.blast.hk/wiki/SetPVarFloat
The two above are for floats, health and armor,
https://sampwiki.blast.hk/wiki/SetPVarInt
https://sampwiki.blast.hk/wiki/GetPVarInt
These are for other variables that are integers, weapons, ammo, etcetera.
I am not so sure about the usage of them, can you provide a simple example please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)