Hey all
Simple problem, dont ask me why it doesnt work
All i want to do is kick all the players in the server then change the map (to load a different plugins.ini) Ive been testing it and when im playing on the server it doesnt kick me though, it just changes the map
Any ideas ?
Code:
public match_restart()
{
new Players[32]
new playerCount, i, uid
// Get all players excluding bots
get_players(Players, playerCount, "c")
// For each player on the server...
for (i = 1; i < playerCount; i++)
{
uid = Players[i]
// Kick the player
server_cmd("kick #%d ^"%s^"", uid, "Sorry, Clan War is about to begin, you were asked to leave!")
}
// Change the Map to something to load the plugins.ini
server_cmd("changelevel %s", DEFAULTMAP)
}
Thanks for any help