Spawn Problems - 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: Spawn Problems (
/showthread.php?tid=243097)
Spawn Problems -
Bliitzz - 21.03.2011
I'm using the PenLS Script as a base. But yet, On spawn, nothing appears other than lamposts. I can see the car's on the GPS, so i know i'm not in a different Vworld. Any suggestions?
Re: Spawn Problems -
Stigg - 21.03.2011
pawn Код:
SetPlayerInterior(playerid, 0);
Perhaps ?
Re: Spawn Problems -
Bliitzz - 21.03.2011
So, Your suggesting i change this?..
Quote:
public SetCamBack(playerid)
{
new Float locx,Float locy,Float locz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetPlayerPos(playerid, -1863.15, -21.6598, 1060.15); // Warp the player
SetPlayerInterior(playerid,14);
//SetPlayerPos(playerid, plocx, plocy, plocz); // Warp the player
//SetPlayerInterior(playerid, 0);
}
|
& Change it to this?
Quote:
public SetCamBack(playerid)
{
new Float locx,Float locy,Float locz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetPlayerPos(playerid, -1863.15, -21.6598, 1060.15); // Warp the player
SetPlayerInterior(playerid, 0);
//SetPlayerPos(playerid, plocx, plocy, plocz); // Warp the player
//SetPlayerInterior(playerid, 0);
}
|
AW: Spawn Problems -
Pablo Borsellino - 21.03.2011
Debug your Interior and Virtualworld, if you are not in the right Virtualworld (Standart 0) or Interior (Standart 0) use SetPlayerVirtualWorld or SetPlayerInterior 
pawn Код:
new Text[120];
format(Text,120,"Interior: %d | Virtual World %d",GetPlayerInterior(playerid),GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid,0xAFAFAFFF,Text);
#edit: Jeah! Change it to your second Code!
Re: Spawn Problems -
Stigg - 21.03.2011
Are you teleporting from an interior ?
If so you need to set the interior back to:
Код:
SetPlayerInterior(playerid, 0);
Is that what you mean ?
Re: Spawn Problems -
Bliitzz - 21.03.2011
Well, I've editted what you said, and still, nothing. I've uploaded some screen's, hopefully this'll explain it abit better.
/imageshack/i/samp006px.png/
/imageshack/i/samp007bik.png/
/imageshack/i/samp008s.png/
/imageshack/i/samp009cl.png/
AW: Spawn Problems -
Pablo Borsellino - 21.03.2011
Jeah! Use SetPlayerInterior(playerid,0); on the Player Spawn
Re: Spawn Problems -
Bliitzz - 21.03.2011
I'm literally, just wanting to Spawn @ Jefferson Motel. Outside, Not in the Interior.