I'm new: How do I save my server?
#1

Hello!

I'm trying to save my SA-MP server. What I mean by this is, when as user gets something like for example, a gun. When the user logs out then logs back in, the gun will be gone. So when a user logs out, how do you make it so it will save the users progress?

Thanks in advance.
Reply
#2

Well, because you're new, I recommend that you download a game mode from the internet. You can find it in this forum, or on ******.
If you want to make your own game mode, go and learn pawn. there are many tutorials out there, just search
If you have already learned pawn, and just asking about how to save info, I think that you'd better use Dini for file saving, or any other method. a lot of people made includes for this stuff.
Reply
#3

yeah i suggest you to learn pawn first... then you can make your own script... also do a search in filter scripts section... you may find something! ^.^
Reply
#4

Thanks guys.
Reply
#5

Or, if you dont want to learn to script just hire one. xD
Reply
#6

how do we make someone admin in gamemode?
Reply
#7

Quote:
Originally Posted by Goldilox
Посмотреть сообщение
how do we make someone admin in gamemode?
Top of the script:
pawn Код:
new admin[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
OnPlayerConnect(playerid)
{
  admin[playerid] = 1;
  for (new i=0; i<20; i++)
  {
    SendClientMessageToAll(0xFFFFFFFF, "hi bro");
  }
  return 1;
}
i hope he is a troll cos else i'll feel sad
Reply
#8

Quote:
Originally Posted by JosephK
Посмотреть сообщение
Hello!

I'm trying to save my SA-MP server. What I mean by this is, when as user gets something like for example, a gun. When the user logs out then logs back in, the gun will be gone. So when a user logs out, how do you make it so it will save the users progress?

Thanks in advance.
u need to use files function.... or download dini and its easier to save player stats to file... search for examples on forum
Reply
#9

Don't forget to add Register System.. or have you?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)