mercredi 21 janvier 2015

Weapon Saving

I have an enumerator of pWeapon, pAmmo.

On disconnect, the script gets the pWeapon, and pAmmo on slot 0.



PlayerInfo[playerid][pWeapon]

PlayerInfo[playerid][pAmmo]



I made it save in an .ini file as well.



On spawn, I made:




pawn Code:




GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapon], PlayerInfo[playerid][pAmmo]);





but it won't give the weapon or do anything really.



Anyone know why?



I use Y_INI




Aucun commentaire:

Enregistrer un commentaire