SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 24/01/2012, 08:53 AM   #1
JosephK
Little Clucker
 
Join Date: Dec 2011
Posts: 6
Reputation: 0
Exclamation I'm new: How do I save my server?

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.
JosephK is offline   Reply With Quote
Old 24/01/2012, 09:05 AM   #2
Chris White
Big Clucker
 
Join Date: Aug 2011
Location: In the shadows!
Posts: 159
Reputation: 57
Default Re: I'm new: How do I save my server?

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.
Chris White is offline   Reply With Quote
Old 24/01/2012, 10:12 AM   #3
aminj
Huge Clucker
 
Join Date: Oct 2011
Posts: 298
Reputation: 8
Default Re: I'm new: How do I save my server?

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! ^.^
__________________
Free 700 MB Linux Webhosting , SSH access,1 sub domain and 1 parked domain is now avalabile!
Register in www.ECSHOST.tk and login to Cpanel to order a free webhosting!
Basic plan , 2gb webspace for 2.00 USD/mo only!
Normal plan , 5gb webspace for 5.00 USD/mo only!
Pro plan , 10gb webspace for 8.00 USD/mo only!
aminj is offline   Reply With Quote
Old 24/01/2012, 04:47 PM   #4
JosephK
Little Clucker
 
Join Date: Dec 2011
Posts: 6
Reputation: 0
Default Re: I'm new: How do I save my server?

Thanks guys.
JosephK is offline   Reply With Quote
Old 24/01/2012, 11:56 PM   #5
Henry_Martinez
Little Clucker
 
Join Date: Jan 2012
Posts: 44
Reputation: 1
Default Re: I'm new: How do I save my server?

Or, if you dont want to learn to script just hire one. xD
Henry_Martinez is offline   Reply With Quote
Old 27/05/2012, 07:34 PM   #6
Goldilox
Huge Clucker
 
Join Date: Mar 2012
Posts: 265
Reputation: 8
Default Re: I'm new: How do I save my server?

how do we make someone admin in gamemode?
Goldilox is offline   Reply With Quote
Old 27/05/2012, 07:43 PM   #7
Revo
Huge Clucker
 
Revo's Avatar
 
Join Date: Apr 2012
Location: The Netherlands
Posts: 244
Reputation: 80
Default Re: I'm new: How do I save my server?

Quote:
Originally Posted by Goldilox View Post
how do we make someone admin in gamemode?
Top of the script:
pawn Code:
new admin[MAX_PLAYERS];
OnPlayerConnect
pawn Code:
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
__________________
(09:03:52) <+Redirect_Left> i am sat in just my boxers
(09:03:52) <+Redirect_Left> tbh.
(09:03:52) <Blake> cute
Revo is offline   Reply With Quote
Old 27/05/2012, 08:15 PM   #8
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 79
Reputation: 12
Default Re: I'm new: How do I save my server?

Quote:
Originally Posted by JosephK View Post
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
Crazymax is offline   Reply With Quote
Old 27/05/2012, 08:44 PM   #9
Raiden Dragneel
Huge Clucker
 
Join Date: May 2011
Location: Kuala Lumpur, Malaysia
Posts: 317
Reputation: 35
Default Re: I'm new: How do I save my server?

Don't forget to add Register System.. or have you?
Raiden Dragneel is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.ini files won´t save on my server ! lamarr007 Scripting Help 7 10/12/2011 06:30 PM
how to Save server time? DexToxz Scripting Help 7 21/11/2011 04:23 PM
How to save server suggestions [Stunter]Rotang Scripting Help 1 12/10/2011 03:38 PM
Server Don't Save? [Headless] Scripting Help 0 11/10/2011 05:03 AM
How to save money in the server? george_ Help Archive 2 15/08/2009 12:30 AM


All times are GMT. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.