How to remove spawn button?
#1

its ok
Reply
#2

No! You can't but you can skip the class slection.
Reply
#3

TogglePlayerSpectating.
Reply
#4

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
No! You can't but you can skip the class slection.
Tell me how, please.

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
TogglePlayerSpectating.
It doesn't work.
Reply
#5

add in OnplayerRequestSpawn: SpawnPlayer(playerid);
Reply
#6

Yes it does.

Код:
TogglePlayerSpectating(playerid, 1);
If you are unsure about how to implement that in your code, Try making a "stock" function which will manually read from your INI file and load up the users data that way, In which case, You basically skip the Spawn Class.
Reply
#7

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
add in OnplayerRequestSpawn: SpawnPlayer(playerid);
I've just tried in this way and it doesn't work. I'd like to remember you I have a system which saves all positions after logout.
Reply
#8

Quote:
Originally Posted by McBan
Посмотреть сообщение
Yes it does.

Код:
TogglePlayerSpectating(playerid, 1);
If you are unsure about how to implement that in your code, Try making a "stock" function which will manually read from your INI file and load up the users data that way, In which case, You basically skip the Spawn Class.
Could you show me how? Just an example, that's it.
Reply
#9

Under OnPlayerConnect, use TogglePlayerSpectating. Then use SetSpawnInfo to allow automatic spawning under OnPlayerRequestClass. When you want them to spawn, simply set their spectating to false.

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#10

Quote:
Originally Posted by Snipa
Посмотреть сообщение
Under OnPlayerConnect, use TogglePlayerSpectating. Then use SetSpawnInfo to allow automatic spawning under OnPlayerRequestClass. When you want them to spawn, simply set their spectating to false.

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Thank you, but I'm using this:
PHP код:
 if(PlayerInfo[playerid][NewReg] == 0// Checking if the player is a new registrator. 
    

        
//SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]); // Sets the player skin. 
        
SetPlayerPos(playeridPlayerInfo[playerid][Xpos], PlayerInfo[playerid][Ypos], PlayerInfo[playerid][Zpos]+0.3); 
        
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)