How to remove spawn button? - 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 remove spawn button? (
/showthread.php?tid=303261)
How to remove spawn button? -
MasterKy - 12.12.2011
Hi, i need a problem here. I want to remove the button "Spawn" that appears when the player die. Anyone do know what the commands? Thanks!
Re: How to remove spawn button? -
English-Conceptz - 12.12.2011
need to force spawn
![Smiley](images/smilies/smile.png)
look on the wiki for it.
or you can set player position to a hospital or home on death.
public OnPlayerDeath(playerid)
SetPlayerPos(playerid,x,y,z);
Re: How to remove spawn button? -
MasterKy - 12.12.2011
is it?
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
}
Re: How to remove spawn button? -
BleverCastard - 12.12.2011
No, Show us your "OnPlayerDeath" Callback and we can help you.
Re: How to remove spawn button? -
English-Conceptz - 12.12.2011
try it
![Smiley](images/smilies/smile.png)
if it works for you then cool, for mine i just use on player death set player position to X,Y,Z. some people use on player death set player pos to position when log in commenced, others use the set spawn info command like above if its a death match etc.
Re: How to remove spawn button? -
Macluawn - 12.12.2011
there's an example in grandlarc gamemode. On connect the player is set as spectating, which causes the spawn button to disappear. Then just set players camera location.