How to remove spawn button?
#1

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!
Reply
#2

need to force spawn 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);
Reply
#3

is it?

public OnPlayerRequestClass(playerid, classid)
{

SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
}
Reply
#4

No, Show us your "OnPlayerDeath" Callback and we can help you.
Reply
#5

try it 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.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)