I've been toying with the idea of adding a ban list to any map I make to add people that others or myself might encounter while playing them that are just jerks or griefers to a ban list where it would kick them upon game start, or maybe even stop them from playing it period. I don't think stopping them from playing it is possible, but I'm betting kicking a certain individual every time is. I have a good idea on how to do it, the problem is I don't want to kick people with the same name that are innocent every time, so I would want to do it via name + player code, but I don't know how to if it's even possible to get a player code.
not possible. you could save the ban in the bank of the bad player, but if he isn't to stupid, he's just going to delete his bank and loose every progress he'd made
You could put an email on your loading screen where people can post about abusers and jerks, in the next build you could hard-code these names into the map, in some array. Just their player-names - then on map-init, IF picked players username = (then go through the list of banned players). Then defeat player
You could put an email on your loading screen where people can post about abusers and jerks, in the next build you could hard-code these names into the map, in some array. Just their player-names - then on map-init, IF picked players username = (then go through the list of banned players). Then defeat player
"if picked player username" doesnt exist >.> You cant compare player names with anything.
Only way to do this is to create a bank that stores something that you check at the start and then ban the player, but banks can always be deleted...
This is why blizz needs to add some kind of bank functions that dont get placed on the end users computer. or figure out some locking system for the bank data
There is no way to compare player names, unfortunately. I think this was an intended feature. To avoid exactly what you want to do. I'm sure you can see it from blizzard's perspective. Even if you truthfully only blocked horrible players, TONS of people would just block people they don't like personally. So yeah, like the others said, do it via a bank or an in-game kick if you really have to.
I've been toying with the idea of adding a ban list to any map I make to add people that others or myself might encounter while playing them that are just jerks or griefers to a ban list where it would kick them upon game start, or maybe even stop them from playing it period. I don't think stopping them from playing it is possible, but I'm betting kicking a certain individual every time is. I have a good idea on how to do it, the problem is I don't want to kick people with the same name that are innocent every time, so I would want to do it via name + player code, but I don't know how to if it's even possible to get a player code.
Thoughts?
not possible. you could save the ban in the bank of the bad player, but if he isn't to stupid, he's just going to delete his bank and loose every progress he'd made
You could put an email on your loading screen where people can post about abusers and jerks, in the next build you could hard-code these names into the map, in some array. Just their player-names - then on map-init, IF picked players username = (then go through the list of banned players). Then defeat player
"if picked player username" doesnt exist >.> You cant compare player names with anything.
Only way to do this is to create a bank that stores something that you check at the start and then ban the player, but banks can always be deleted...
@JakeCake26: Go
this doesn't solve the problem of doubled player names and wtf email? this screams abuse
and TheAlmaity is right, NameOfPlayer returns a Text, you can't compare text
That's really sad, I guess a player kick function will have to do.
This is why blizz needs to add some kind of bank functions that dont get placed on the end users computer. or figure out some locking system for the bank data
There is no way to compare player names, unfortunately. I think this was an intended feature. To avoid exactly what you want to do. I'm sure you can see it from blizzard's perspective. Even if you truthfully only blocked horrible players, TONS of people would just block people they don't like personally. So yeah, like the others said, do it via a bank or an in-game kick if you really have to.