AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help :( (https://forums.alliedmods.net/showthread.php?t=75844)

ILUSION 08-13-2008 10:12

Help :(
 
Hello, I have a problem with this plugin, well, what I want to make is that as soon as it connects the customer for the first time (not in changing map) to the server you leave messages on your console.

If I do for example with the command amx_welcome works, which means that there is something wrong. Please I need help.

Greetings, and forgive the English I speak, use the translator google ...


PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Plugin"
#define VERSION "1.2"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

public 
client_putinserver(id) {

    new 
CurrentTime[9], name[32]

    
get_user_name(idnamesizeof name 1)
    
get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
    
    
console_print(id,"=========================================================")
    
console_print(id,"Hola %s , bienvenido a los servidores de Hunter Gamers",name)
    
console_print(id,"Estas jugando en Hunter Gamers - Mapas Comunes")
    
console_print(id,"Hora y fecha actual: %s",CurrentTime,31)
    
console_print(id,"Para silenciar a alguien solo hay que escribir /mute")
    
console_print(id,"=========================================================")




All times are GMT -4. The time now is 03:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.