SFCRRPGv1.1 GM - Resume Character
#1

Hi,

Wasn't quite sure where to post this, but I am having issues here, I am using SFCRRPGv1.1 as game mode, however, If I disconnect or anything and relog back in it makes me select a new character and not continue with the character I was playing, If i had any debt, it's automatically gone and he has $10000, which sort of makes everything useless, however, only thing it stops me from doing it selecting anyone who isn't a civilian as a (mean, I can't select police, taxi etc) if I was previously wanted before disconnecting.

I want to know if there is a way to make me continue with the same character and same stats until I want to change, which I assume I would need a FS for a new life, that starts all over.

I've seen this on CrazyBoB where you can select a new life and stuff.

If anyone knows how to sort this out, can you please help me a bit, given the fact its a CnR server, this makes it sort of useless :P
Reply
#2

You need to save skin and the money using systems like INI file saving or MySQL!
Reply
#3

Oh, I have no clue how to do that, damn, I was under the impression the account registeration managed that in the GM

It saves a file which contains the following;

password_hash=987367053
Money=10000
Bankcash=34000
Score=-3
Adminlevel=1
Nameban=0
Army=0
CIA=0
RegularPlayer=0
DrugHouseOwner=0
OttoOwner=0
TSkill=0
RobSkill=1
HasPackC4=0
HasPackRope=0
HasPackMoney=0
SavedJailTime=0
SavedWantedLevel=0
IP=127.0.0.1
Cash=-184066

but that doesnt seem to help, but how do I save skin?
Reply
#4

Just add the skin variable under the enum, save it onplayerdisconnect by "GetPlayerSkin(playerid)" and onplayerspawn, load it !
Reply
#5

My GameMode is set up so that you have to select your skin according to your chosen class...
If you were to always spawn as the same skin without choice, would defeat the purpose of CnR.
Reply
#6

Ok, I will check it out, hopefully I can figure it out :P

@Steve, yeah, I understand, but I was hoping for it to be like crazybob, where If your cop, you stay that until you start new life, I can life with it, if need be, but the fact it keeps giving 10k after dying, even when im in great debt
Reply
#7

Well you can script it that way, you just gotta know how to do it.
I am aware there is a hand cash bug, but I have stopped development, you will just have to fix it.
Reply
#8

No chance you could set me on the right path?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)