SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 31/10/2011, 01:57 AM   #1
English-Conceptz
Big Clucker
 
Join Date: Oct 2011
Posts: 148
Reputation: 8
Default using mReg Filterscript and need spawn help. (not filterscript related.)

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.
English-Conceptz is offline   Reply With Quote
Old 31/10/2011, 02:03 AM   #2
Stigg
High-roller
 
Stigg's Avatar
 
Join Date: Aug 2010
Location: Other side of the Universe.
Posts: 2,038
Reputation: 125
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

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

Peace...

Stigg is offline   Reply With Quote
Old 31/10/2011, 02:08 AM   #3
English-Conceptz
Big Clucker
 
Join Date: Oct 2011
Posts: 148
Reputation: 8
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

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:

English-Conceptz is offline   Reply With Quote
Old 31/10/2011, 02:10 AM   #4
Stigg
High-roller
 
Stigg's Avatar
 
Join Date: Aug 2010
Location: Other side of the Universe.
Posts: 2,038
Reputation: 125
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

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

Peace...

Stigg is offline   Reply With Quote
Old 31/10/2011, 02:13 AM   #5
English-Conceptz
Big Clucker
 
Join Date: Oct 2011
Posts: 148
Reputation: 8
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

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;
}
English-Conceptz is offline   Reply With Quote
Old 31/10/2011, 02:45 AM   #6
Stigg
High-roller
 
Stigg's Avatar
 
Join Date: Aug 2010
Location: Other side of the Universe.
Posts: 2,038
Reputation: 125
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

Did you read the pm
__________________

Peace...

Stigg is offline   Reply With Quote
Old 31/10/2011, 02:53 AM   #7
English-Conceptz
Big Clucker
 
Join Date: Oct 2011
Posts: 148
Reputation: 8
Default Re: using mReg Filterscript and need spawn help. (not filterscript related.)

Quote:
Originally Posted by Stigg View Post
Did you read the pm
replied now.
English-Conceptz 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
[FilterScript] Spawn Protection Filterscript [K665's Spawn Protection] Kerlan Filterscripts 17 28/11/2011 01:02 PM
Filterscript undeR. Help Archive 5 04/08/2011 01:05 AM
Can I use CPS in a filterscript? dirkblok Help Archive 3 19/02/2010 08:50 AM


All times are GMT. The time now is 08:18 AM.


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