Putting in Interior for Login - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Putting in Interior for Login (
/showthread.php?tid=91078)
Putting in Interior for Login -
wilcock33 - 12.08.2009
HI!
i want to do the folowing IF it is possible
i have just fineshed mny login script - HUZZAH!
BUT - if the player IS NOT registred they go to class selection pick a skin then go to an interior to login
IF THEY ARE REGISTRED i want to send the to an interior to login
is it possible?
if so, HOW?
im a noobie scripter and a noob so, plz help!
Re: Putting in Interior for Login -
WrathOfGenesis - 12.08.2009
pawn Код:
OnPlayerSpawn ( playerid )
{
if ( LoggedIn [ playerid ] == 0 ) // Change to your login variable
{
//SetPlayerPos and SetPlayerInterior Here
}
}
Something like that?
Re: Putting in Interior for Login -
wilcock33 - 12.08.2009
yh, kindof, would you like to see my login script?
just to say if it can be done with the script i have :P
Re: Putting in Interior for Login -
WrathOfGenesis - 12.08.2009
Yea ok. Can you upload it to pastebin please?
Re: Putting in Interior for Login -
wilcock33 - 12.08.2009
yh ok
Re: Putting in Interior for Login -
wilcock33 - 12.08.2009
Quote:
Yea ok. Can you upload it to pastebin please?
|
here is the link
http://pastebin.com/f73718aff
Re: Putting in Interior for Login -
WrathOfGenesis - 12.08.2009
pawn Код:
OnPlayerSpawn ( playerid )
{
if ( gPlayerLogged [ playerid ] == 0 )
{
SetPlayerPos ( playerid , X , Y , Z );
SetPlayerInterior ( playerid , Interior );
}
}
Put the insides to that OnPlayerSpawn inside your OnPlayerSpawn and change the X , Y , Z to your coords and the interior to your desired interior.
EDIT: By the way, i do NOT recomend lines 222 - 248. Puting that much stuff inside OnPlayerUpdate can make it EXTREMELY laggy.
Re: Putting in Interior for Login -
wilcock33 - 12.08.2009
ok, when i try to compile i get loads of errors
could you post an example of the script using an ID XYZ ETC
thanks
Re: Putting in Interior for Login -
WrathOfGenesis - 12.08.2009
pawn Код:
OnPlayerSpawn ( playerid )
{
if ( gPlayerLogged [ playerid ] == 0 )
{
SetPlayerPos ( playerid , 100.0 , 1500.0 , 10.0 );
SetPlayerInterior ( playerid , 0);
}
}
NOTE: This will spawn you at a random coordinate.
Re: Putting in Interior for Login -
wilcock33 - 12.08.2009
ah ok thanks
you want credits in the server?
im nice like that