How can i? - 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: How can i? (
/showthread.php?tid=154350)
How can i? -
NewTorran - 13.06.2010
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?
Re: How can i? -
Jeffry - 13.06.2010
The code would be usefull.
Re: How can i? -
NewTorran - 13.06.2010
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);
Re: How can i? -
Jeffry - 13.06.2010
The place is all right.
Do you use it under OnPlayerSpawn? or where?
Re: How can i? -
NewTorran - 13.06.2010
Yes OnPlayerSpawn
Re: How can i? -
Hiddos - 13.06.2010
This problem again. AFAIK, the LSPD interior is used twice, and will spawn you at the village.
It's hard to explain ^^
Re: How can i? -
Jeffry - 13.06.2010
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.
Re: How can i? -
Thrarod - 13.06.2010
Код:
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
Worked with my Wild West RP /enter CMD