SA-MP Forums Archive
I'm new: How do I save my server? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: I'm new: How do I save my server? (/showthread.php?tid=313064)



I'm new: How do I save my server? - JosephK - 24.01.2012

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.


Re: I'm new: How do I save my server? - Chris White - 24.01.2012

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.


Re: I'm new: How do I save my server? - aminj - 24.01.2012

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! ^.^


Re: I'm new: How do I save my server? - JosephK - 24.01.2012

Thanks guys.


Re: I'm new: How do I save my server? - Henry_Martinez - 24.01.2012

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


Re: I'm new: How do I save my server? - Goldilox - 27.05.2012

how do we make someone admin in gamemode?


Re: I'm new: How do I save my server? - Revo - 27.05.2012

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


Re: I'm new: How do I save my server? - Crazymax - 27.05.2012

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


Re: I'm new: How do I save my server? - Raiden Dragneel - 27.05.2012

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