Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Kicking a player.

$
0
0
So I'm trying to do a kick player function and I just can't get it to work properly. The thing is I want the player to know why he was kicked, so I need to be able to send a string along with the kick, to tell the player what happened. (It could be an int with an id as well, but I do prefer the string method).

So here's what I'm doing:


[ClientRpc]
void RpcKick(string msg)
{
//If we are the server kick the client
if (Links.MS.IsHost)...

Kicking a player.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>