SA-MP Forums Archive
Player Spawning in Interior - 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)
+--- Thread: Player Spawning in Interior (/showthread.php?tid=514351)



Player Spawning in Interior - Steel_ - 21.05.2014

Hello, i made a OnPlayerRequestClass in an interior and now when i spawn im in some kind of interior world where there are a few buildings and thats it

Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid)) return 1;
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,944.99,-41.64,1001.77);
    SetPlayerFacingAngle(playerid,180.0);
    SetPlayerCameraPos(playerid,944.69,-47.54,1001.12);
    SetPlayerCameraLookAt(playerid,944.99,-41.64,1001.77);
	switch(classid)



Re: Player Spawning in Interior - Rittik - 21.05.2014

Specify your interior please.


Re: Player Spawning in Interior - Adityz - 21.05.2014

Under OnPlayerSpawn, use this -
pawn Код:
SetPlayerInterior(playerid,0);



Re: Player Spawning in Interior - Rittik - 21.05.2014

The interior ID 3 contains many position such as barber shop,planning dept. and etc ...
If you can specify the player's position we can try helping you out.


Re: Player Spawning in Interior - BroZeus - 21.05.2014

use this
pawn Код:
OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
//rest of your code onplayerspawn here
return 1;
}



Re: Player Spawning in Interior - Steel_ - 21.05.2014

Zeus and Adityz code i tried but it shows me an error message now and it still stays the same
warning 203: symbol is never used: "S@@_OnPlayerSpawn"


Re: Player Spawning in Interior - Matess - 21.05.2014

Find "public OnPlayerSpawn(playerid)" and add:

pawn Код:
SetPlayerInterior(playerid,0);



Re: Player Spawning in Interior - Steel_ - 21.05.2014

Thank you for all the help i got it fixed now