Interior or VirtualWorld?
#1

I got problem, After getting killed in a interior sometimes in other world. I spawn but I don't see any objects. It just a plane textures (Grey) and stunts are gone. But after I looked up my Virtual World And Interior it is both 0.

EDIT: Under OnPlayerSpawn I have this

Код:
	SetPlayerInterior(playerid, 0);
	SetPlayerVirtualWorld(playerid, 0);
Reply
#2

Try to add that on OnPlayerDeath.
Reply
#3

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Try to add that on OnPlayerDeath.
Thanks redjohn. I'm not on my pc but do you think this would work in OnPlayerSpawn and OnPlayerDeath?

What I mean is this. For Example...

I'm in VirtualWorld 3 and Interior 3. And I do /kill

Sometimes it only set to OnPlayerDeath but after spawning (OnPlayerSpawn). It goes back to original VirtualWorld 3 and Interior 3.
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{  
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
}
this should work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)