View Single Post
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-28-2012 , 11:26   Re: [B3] New IP Redirect (v1.0, 3-28-11)
Reply With Quote #4

Nice plugin.

PHP Code:
public EventSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    
decl String:buffer[32];
    
GetConVarString(NewIPbuffersizeof(buffer));
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    new 
Float:time GetConVarFloat(STime); 
    new 
String:ip[32]; 
    
GetConVarString(NewIPipsizeof(ip));
    
DisplayAskConnectBox(clienttimeip);
    
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!
Dr!fter is offline