spawn problem
#1

hello i have used for my playerrequestclass an interior and on onplayerspawn i got setplayerinterior 0 but when i spawn i'm still in some interior
how to fix this?
Reply
#2

Set a timer
pawn Код:
public OnPlayerSpawn(...)
{
    SetTimerEx("SetInt",2000,false,"i",playerid);
    return 1;
}

public SetInt(playerid)
{
      SetPlayerInterior(playerid,0);
      return 1;
}
Reply
#3

Or try that on
OnPlayerRequestSpawn:
pawn Код:
SetPlayerInterior(playerid,0);
Reply
#4

thnx you guys i'l try
Reply
#5

You may have to use SetPlayerVirtualWorld also.
Reply
#6

yeah i was thinking that to but i wasnt sure:P
Reply
#7

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    return 1;
}
Reply
#8

@sabretur
Quote:
Originally Posted by justsomeguy
i got setplayerinterior 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)