@qnda This won't work.
Try this
init()
{
level thread on_player_connect();
}
on_player_connect()
{
while ( true )
{
level waittill( "connected", player );
//add your code here call it on player
}
}
Definitely don't use spawned_player for this because that would cause duplicate threads to be spawned every time a player respawns. This can cause the game to error.
Feel free to join the staff for 0$/month and answer the hundred/thousands questions asked on a daily basis including things already answered a thousand times just to have random people call the forum/you useless
Anyways, if everyone was searching on the forum and do basic steps like re-downloading, repairing, checking for basic stuff etc. we would have more time to answer actual support requests, but I guess this is also our fault. Glad you found yourself good job
EDIT: It resolved itself after about ten days from the update. I have not yet discovered the cause, but it reassures me that now I no longer have any problems.
@qnda Well its a bit like writing a book. Writing a book requires a decent understanding of the language, and its grammar. Either you learn to write yourself or you get a ghostwriter to write it for you. I'm not going to write it for you, and most likely no one will write it for you for free.
https://plutonium.pw/docs/modding/gsc/ might be helpful
Also the Plutonium Discord server has several useful resources in the modding channels pins.