Armor saving
#1

Alright, if you may have guessed I have been editing a leaked memory RP server that I'm improving in many ways! So could someone give me a link or just post it here, to a tutorial on how to save a player's armor on disconnect but give it back on connect? I figure it is similar to the weapon save which I have, I'm just not really familiar with PAWNO yet.
Reply
#2

On top
pawn Код:
new LastArmour
On player disconnect
pawn Код:
GetPlayerArmour(playerid, LastArmour[playerid]);
On player spawn
pawn Код:
SetPlayerArmour(playerid, LastArmour[playerid]);
That should work.
Reply
#3

Quote:
Originally Posted by rangerxxll
Посмотреть сообщение
On top
pawn Код:
new LastArmour
On player disconnect
pawn Код:
GetPlayerArmour(playerid, LastArmour[playerid]);
On player spawn
pawn Код:
SetPlayerArmour(playerid, LastArmour[playerid]);
That should work.
pawn Код:
new LastArmour;
pawn Код:
new LastArmour[MAX_PLAYERS];
Reply
#4

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
pawn Код:
new LastArmour;
pawn Код:
new LastArmour[MAX_PLAYERS];
Hey, I almost answered a scripting question correctly, considering I'm a new scripter
Reply
#5

you'd need to use a float not an integer
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)