Nice plugin.
PHP Code:
public EventSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
decl String:buffer[32];
GetConVarString(NewIP, buffer, sizeof(buffer));
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new Float:time = GetConVarFloat(STime);
new String:ip[32];
GetConVarString(NewIP, ip, sizeof(ip));
DisplayAskConnectBox(client, time, ip);
PrintToChat(client, "[SM] We have a new server at IP: %s", ip);
PrintToChat(client, "[SM] Press F3 to connect to the new server.");
PrintToChat(client, "[SM] If you do not connect, you will be kicked from this server.");
}
You declare buffer and set its value but never use it you then grab the same value but store it in ip so remove the buffer one. Other than that looks good and approved!