How do i ...
#1

So... i worked long and hard on making this great server... but how do i get it where others can play on it? I need a method where i do not have to pay any money... and do not need to have the "samp-server.exe" open 24/7.... thank you.


Also...After People login.... i want them to be able to choose from several different things..... "stunt mode" and "cops and robbers"


is there a way to have them click on one, then have their world set to a different one, so that if someone clicks "stunt" they are sent to world 1 and are in a stunt filled world.... and if they click on "cops and robbers" they are sent to my other script for cops and robbers in world 2?

Thanks again,
Kevin
Reply
#2

There's no such thing as a free lunch.
Reply
#3

The first thing: You say you want someone to host your server for free? Companies that are free usually steal your script. Paying is the best option.
Reply
#4

1.No
2.Yes - https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Reply
#5

im sorry. i didnt mean to sound greety... it's just i have spent alot of money on this already and can't afford to spend anymore..... again, i dont mean to be greety.... is there a way i could port forward it and have it available 24/7?
Reply
#6

You could host it on your own pc but:
Quote:
Originally Posted by ee100
Посмотреть сообщение
Paying is the best option.
Reply
#7

Well, I'm not sure about the server thing. I personally just have hosting. However, I can help you with the different modes.

I suggest using a dialog, they are very nice and professional looking. To start, place a dialog under OnPlayerSpawn. This means, when they spawn, they will see this dialog:

Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Please select your game mode.", "Race\nStunt\nDM",  "Select", "Cancel");
The number "1" is the ID of the dialog, the first set of parentheses is the title of the dialog, and the next is the actual stuff in the list. The "\n" means a new line.

Now, OnDialogResponse is where we select what we want the stuff to do. So under on dialog response, put:

Код:
if(dialogid == 1 && response)
{
switch(listitem)
{
case 0: // option 1
{
//Whatever you want to happen to them when they click the first option, which is race, put it here.
}
case 1: // option 2
{
//Whatever you want to happen to them when they click the second option, put it here.
}
case 2:
{
//Same thing as above
}
}
}
Reply
#8

Quote:
Originally Posted by TKZ227
Посмотреть сообщение
Well, I'm not sure about the server thing. I personally just have hosting. However, I can help you with the different modes.

I suggest using a dialog, they are very nice and professional looking. To start, place a dialog under OnPlayerSpawn. This means, when they spawn, they will see this dialog:

Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Please select your game mode.", "Race\nStunt\nDM",  "Select", "Cancel");
The number "1" is the ID of the dialog, the first set of parentheses is the title of the dialog, and the next is the actual stuff in the list. The "\n" means a new line.

Now, OnDialogResponse is where we select what we want the stuff to do. So under on dialog response, put:

Thank you... i put "Stunt\nDM\nCops And Robbers"


So..... would you mind helping me set the gamemode and world for them if they clicked on eachone?
Reply
#9

If you want to put them in a different world, set their virtual world different. To put them in the position you want, SetPlayerPos. Check out scripting functions at wiki.sa-mp.com
Reply
#10

ok thank you.... and this will be coming after the login and registration dialogue box.... so could you please help me with how to have the login and register box work?

ex.....

they insert a password to register with....... they login......... how do i get their info to save? and then will their info and that Dialogue box inturupt this new one with the mode they would like?


And once they choose stunt, or cops and robbers.... how do i get that gamemode to load up based on what they selected?

Sorry for asking so many questions XD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)