SA-MP Forums Archive
How can i remove this - 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 can i remove this (/showthread.php?tid=640248)



How can i remove this - TYDS - 30.08.2017

Hello i just make a gamemode but in login it's appear this
how can i remove the spawn buttom




Re: How can i remove this - Zeth - 30.08.2017

You need to spawn the player to make it disappear.
You can avoid it by simply spawning the player to a virtual world or anywhere and then when a player will successfully log in, you can again set the player's pos again.simple.


Re: How can i remove this - TYDS - 30.08.2017

Quote:
Originally Posted by Debjit
Посмотреть сообщение
You need to spawn the player to make it disappear.
You can avoid it by simply spawning the player to a virtual world or anywhere and then when a player will successfully log in, you can again set the player's pos again.simple.
can i use TogglePlayerSpectating


Re: How can i remove this - Bingo - 30.08.2017

Quote:
Originally Posted by Debjit
Посмотреть сообщение
You need to spawn the player to make it disappear.
You can avoid it by simply spawning the player to a virtual world or anywhere and then when a player will successfully log in, you can again set the player's pos again.simple.
This or

Quote:

TogglePlayerSpectating




Re: How can i remove this - TYDS - 30.08.2017

Quote:
Originally Posted by Bingo
Посмотреть сообщение
This or
so both way are correct ?? but which way is optimize ?


Re: How can i remove this - Bingo - 30.08.2017

Quote:
Originally Posted by TYDS
Посмотреть сообщение
so both way are correct ?? but which way is optimize ?
Код:
TogglePlayerSpectating
I use this.

OnPlayerConnect do this

Код:
TogglePlayerSpectating(playerid, true);
And once the player is spawned or he/she logs in.

Код:
TogglePlayerSpectating(playerid, false);



Re: How can i remove this - Zeth - 30.08.2017

You should go with TogglePlayerSpectating because it would be much easy and simple.


Re: How can i remove this - TYDS - 30.08.2017

ok thank you man +rep for two guys


Re: How can i remove this - BadJih - 30.08.2017

setplayerpos