|
3 registered members (Quad, TipmyPip, mayarik),
7,743
guests, and 1
spider. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: sorry one more multiply player question
[Re: jcl]
#350084
12/13/10 16:12
12/13/10 16:12
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
OP
Serious User
|
OP
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
okay JCL you were right. Here is my main function for anyone actually following this:
void main()
{
if (!connection) { // not started with -cl / -sv -cl?
if (!session_connect(app_name,"")) // no client found on the localhost?
session_open(app_name); // start as server
}
do{wait(1);}
while(dplay_status < 2); // wait until the session is opened or joined
dplay_localfunction = 2; //run actions on both server and client
level_load("valiance.wmb"); // load the level
if(connection & CONNECT_SERVER) //are we a server?
{
ent_create("testing.mdl",vector(100,0,0),fItem); //OMG a monster was killed!!! Drop an item ont he server!
}
else
{
ent_create("testing.mdl",vector(0,0,0),NULL);
}
}
Last edited by PrenceOfDarkness; 12/13/10 16:13.
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
Re: sorry one more multiply player question
[Re: jcl]
#350086
12/13/10 16:28
12/13/10 16:28
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
OP
Serious User
|
OP
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
WOW thank you very much!!!
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
|