How can i?
#1

Hello,

I have made it so anyone who joins my server will spawn in LSPD,
I drove to the LSPD, Walked in the door, Got the interior ID and put it in my script,
But it puts me out in some village and not LSPD, why?
Reply
#2

The code would be usefull.
Reply
#3

Oh yeah lol.

It might be because 2 pd's in SA use the same int:

pawn Код:
SetPlayerPos(playerid, 250.657531, 63.298545, 1003.640625);
SetPlayerInterior(playerid, 6);
Reply
#4

The place is all right.

Do you use it under OnPlayerSpawn? or where?
Reply
#5

Yes OnPlayerSpawn
Reply
#6

This problem again. AFAIK, the LSPD interior is used twice, and will spawn you at the village.

It's hard to explain ^^
Reply
#7

pawn Код:
new InLSPD[MAX_PLAYERS];
OnPlayerSpawn
pawn Код:
// There where you set the pos to LSPD
InLSPD[playerid]=1;

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
  if(newinteriorid==0 && oldinteriorid==6 && InLSPD[playerid]==1)
  {
   // Set here the position to LS Infront of the HQ.
  }
  return 1;
}
This may work, but I didnt try it. Never worked with the InteriorChange. But you can give it a try.
Reply
#8

Код:
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
Worked with my Wild West RP /enter CMD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)