SA-MP Forums Archive
< > & spawn button help - 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: < > & spawn button help (/showthread.php?tid=377789)



< > & spawn button help - RLGaming - 15.09.2012

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


AW: < > & spawn button help - BiosMarcel - 15.09.2012

use SpawnPlayer(playerid);

in OnPlayerRequestClass


Re: < > & spawn button help - zDevon - 15.09.2012

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.


Re: < > & spawn button help - RLGaming - 15.09.2012

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


Re: < > & spawn button help - zDevon - 16.09.2012

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.


Re: < > & spawn button help - Deal-or-die - 16.09.2012

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