i need to know how i can tie the onplaer connect funtion to onplayer spawn that way the function will only do it on the player connect
def On_PlayerConnected(self, Player):
DataStore.Add("FirstConnect", Player.SteamID, "True")
def On_PlayerSpawned(self, Player):
if DataStore.Get("FirstConnect", Player.SteamID) == "True":
DataStore.Remove("FirstConnect", Player.SteamID)
#Do stuff
else:
return
#Returns nothing so ends right here
def On_PlayerConnected(self, Player):
DataStore.Add("FirstConnect", Player.SteamID, 1)
def On_PlayerSpawned(self, Player):
if DataStore.ContainsKey("FirstConnect", Player.SteamID):
DataStore.Remove("FirstConnect", Player.SteamID)
# todo
PlayerList = {}
def On_PlayerConnected(self, Player):
self.PlayerList[Player.SteamID] = "First Time Spawn"
def On_PlayerSpawned(self, Player):
if self.PlayerList[Player.SteamID] is not None:
del self.PlayerList[Player.SteamID]
# do stuff here
Is removing walls causes the client errors? Thats weird never knew that. If that error is handled client side, then no. Needs checking.one last thing is it possible to check a players console i am a where that when a player removes his walls his console gets spamed with errors if there was a way we could check the console for the error loading woodwall we ould patch that glich permanently