SA-MP Forums Archive
using mReg Filterscript and need spawn help. (not filterscript related.) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: using mReg Filterscript and need spawn help. (not filterscript related.) (/showthread.php?tid=294074)



using mReg Filterscript and need spawn help. (not filterscript related.) - English-Conceptz - 31.10.2011

Hi ladies & gents, i installed last night the mREGV0.7.3 |ADVANCED REGISTER SYSTEM (Link Here) its totally awesome!

and id like to know how to get rid of having to spawn like this (pic below) every time i log in as mREG saves player positions.


I'd like to spawn at my last position i was at before logout. mREG does this but, i have to put this in :

Code:
AddPlayerClass(0,1340.7422,-621.9026,109.1349,82.2364,0,0,0,0,0,0);
else the game flashes white when i click spawn and it says in red " stay in the world boundaries " .... =/

i'm still learning the PAWN language so please dont give me one word answers as they wont mean anything to me

i really hope someone can help.


Re: using mReg Filterscript and need spawn help. (not filterscript related.) - Stigg - 31.10.2011

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
It will now skip the skin choice screen.


Re: using mReg Filterscript and need spawn help. (not filterscript related.) - English-Conceptz - 31.10.2011

Quote:
Originally Posted by Stigg
View Post
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
It will now skip the skin choice screen.
thanks for the quick reply that didnt have any effect though do you want me to post the gamecode ? and the filterscript would that help ? =/

EDIT: it appears to be the spawn location screen its stuck on but all you see is the background start up image and the image i posted above, i will post a small picture screenshot, 2 secs.

This is all that shows up:




Re: using mReg Filterscript and need spawn help. (not filterscript related.) - Stigg - 31.10.2011

Just post the:
pawn Code:
public OnPlayerRequestClass(playerid, classid)
Callback.


Re: using mReg Filterscript and need spawn help. (not filterscript related.) - English-Conceptz - 31.10.2011

Code:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("EC-Gaming SAMP");
	DisableInteriorEnterExits();
 	AddPlayerClass(0,1340.7422,-621.9026,109.1349,82.2364,0,0,0,0,0,0); //
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}



Re: using mReg Filterscript and need spawn help. (not filterscript related.) - Stigg - 31.10.2011

Did you read the pm


Re: using mReg Filterscript and need spawn help. (not filterscript related.) - English-Conceptz - 31.10.2011

Quote:
Originally Posted by Stigg
View Post
Did you read the pm
replied now.