RP + Freeroam Server
#1

Hello every one, i find an idea and i want to ask, if i can create it.

So, i want to have an RolePlay and Freeroam Server, but, when the player connect, will select witch one he want to play.

So here, i will need 2 scripts I think, or 2 server so, if player select Freeroam, it will open the freeroam server, and the opposite if he choose the RolePlay Server.

I hope you understand what i want to create.

Thanks, and sorry for my Bad English!
Reply
#2

well I don't think you can use 2 servers linked to each other.
at least I have not seen this done,

but you can use the virtual world to keep both modes separate,
you'll have to script everything around what virtual world a player is in,
It is possible this way I believe


~Jon
Reply
#3

Not possible to have two scripts running at once, unless you have two servers.
Reply
#4

Any tutorial that will help me to create this in Virtual Worlds?
Reply
#5

It's possible to do with Virtual Worlds, but you'd need one specified for the freeroam, and then you'd have to add a virtual world check to all the commands.
Add the fact that when you enter a business/house/whatever, your virtualworld is randomly set.
Reply
#6

well no I dont think so atleast I havent seen one yet,

note that the gamemodes would all be in one gamemode

you wont have 2 seperate gamemode files,

but the basic would be
pawn Code:
if(GetPlayerVirtualWorld(playerid)) ==RPVW){
//code here for rp
}else if(GetPlayerVirtualWorld(playerid)) ==FRVW){
//code here for fr
}

but this is gonna have to be in every callback and in every part of your code,

might be alot easier to run 2 servers and advertise the rp in the fm and the fm in the rp;


EDIT:
Quote:
Originally Posted by Jack.7331
View Post
It's possible to do with Virtual Worlds, but you'd need one specified for the freeroam, and then you'd have to add a virtual world check to all the commands.
Add the fact that when you enter a business/house/whatever, your virtualworld is randomly set.
and yes this seams to be a problem so I would store a PlayerInfo var for keeping what VW the player was suppose to be in
Reply
#7

I can use different filterscripts/maps/includes for each one?
Reply
#8

No,

not enless you include the same logic in your FS/MAPS ect..

includes on the other hand will work as long as they have the same logic,
if its an include with just a bunch of stocks then it will be okay as your defineing how they are used
in your gamemode

youll probably want to convert any filterscripts to be embedded right in your game mode.
or write an include to have public functions that get/set your playerinfo enum
and use CallRemoteFunction from the filter script to access the PlayerInfo enum

what your trying todo will be hard I think, iv never tried it.
Reply
#9

I know that is hard, thats why ask here. Am not as good scripter as some guys from here, so i need their help!

If anyone want, can, and have the time to create an example for me, i will appreciate it!
Reply
#10

LOL! I had this exact same idea a long time ago, i just never decided to do it!
Thats crazy.. :P

Anyways. i know exactly how you would do it, i just dont feel like explaining it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)