Player Spawning in Interior
#1

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

Specify your interior please.
Reply
#3

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

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

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

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

Find "public OnPlayerSpawn(playerid)" and add:

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

Thank you for all the help i got it fixed now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)