Putting in Interior for Login
#1

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!
Reply
#2

pawn Код:
OnPlayerSpawn ( playerid )
{
  if ( LoggedIn [ playerid ] == 0 ) // Change to your login variable
  {
    //SetPlayerPos and SetPlayerInterior Here
  }
}
Something like that?
Reply
#3

yh, kindof, would you like to see my login script?

just to say if it can be done with the script i have :P
Reply
#4

Yea ok. Can you upload it to pastebin please?
Reply
#5

yh ok
Reply
#6

Quote:

Yea ok. Can you upload it to pastebin please?

here is the link http://pastebin.com/f73718aff
Reply
#7

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.
Reply
#8

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
Reply
#9

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.
Reply
#10

ah ok thanks

you want credits in the server?

im nice like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)