SA-MP Forums Archive
How to fix bug bottle - 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: How to fix bug bottle (/showthread.php?tid=623683)



How to fix bug bottle - Vaki - 03.12.2016

http://prntscr.com/df06pk
I set this on OnPlayerRequestClass
Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
    SpawnPlayer(playerid);
    return 1;
}



Re: How to fix bug bottle - BiosMarcel - 04.12.2016

I guess you / someone else fucked up at mapping, you can try and find the boject and delete.


Re: How to fix bug bottle - iamjems - 04.12.2016

Quote:
Originally Posted by Vaki
Посмотреть сообщение
http://prntscr.com/df06pk
I set this on OnPlayerRequestClass
Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
    SpawnPlayer(playerid);
    return 1;
}
You must have a delay before spawning the player. Use a this:

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetTimerEx("spawntheplayer"10false"i"playerid);
    return 
1;
}
forward spawntheplayer(playerid);
public 
spawntheplayer(playerid)
{
    
SpawnPlayer(playerid);
    return 
1;

This will add a delay of 10 milliseconds. Even 1 millisecond is enough, but use 10 just for safety.


Re: How to fix bug bottle - Threshold - 04.12.2016

Try setting the player's special action to SPECIAL_ACTION_NONE when they spawn.

https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction