< > & spawn button help
#1

Is there anyway to remove the SPAWN and the two arrows when you start a SAMP server?

I don't want to put a textdraw over it like some servers so is there a way to remove it?

If there isnt, any ideas what I could put there

thanks guys<3
Reply
#2

use SpawnPlayer(playerid);

in OnPlayerRequestClass
Reply
#3

Put the player into spectating mode in either OnPlayerConnect or OnPlayerRequestClass and the box will not be shown. Just be sure to take them out of spectating mode prior to spawning.
Reply
#4

So, I'd just set their Camera Position?

I have a login box, its a role-play GM - So, having SPAWN at the bottom when the register/login dialog comes up, isnt very good lol
Reply
#5

Quote:
Originally Posted by RLGaming
Посмотреть сообщение
So, I'd just set their Camera Position?

I have a login box, its a role-play GM - So, having SPAWN at the bottom when the register/login dialog comes up, isnt very good lol
Doing what I said will cause the box to "go away."

OnPlayerRequestClass, use TogglePlayerSpectating(playerid,1);

After that, perhaps on your login dialog, TogglePlayerSpectating(playerid,0);, SetSpawnInfo, and SpawnPlayer.
Reply
#6

Example
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, true);// <--
    return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
    TogglePlayerSpectating(playerid, false);//<--
    SendClientMessage(playerid,COLOR_RED, "Player Spawned...");
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)