SA-MP Forums Archive
Interior or VirtualWorld? - 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: Interior or VirtualWorld? (/showthread.php?tid=381537)



Interior or VirtualWorld? - kbalor - 29.09.2012

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);



Re: Interior or VirtualWorld? - RedJohn - 29.09.2012

Try to add that on OnPlayerDeath.


Re: Interior or VirtualWorld? - kbalor - 29.09.2012

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.


Re: Interior or VirtualWorld? - xMCx - 29.09.2012

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