AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pls just check a small code (https://forums.alliedmods.net/showthread.php?t=82894)

mozart123 12-31-2008 16:45

pls just check a small code
 
PHP Code:

 
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "connect info & music"
#define VERSION "1.0"
#define AUTHOR "mozart"
new const connect_sound[] = "sound/misc/avril.wav"
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
  
}
public 
client_connect(id){
 
 
 
client_cmd(id,"MP3volume 1")
 
client_cmd(id,"spk %s",connect_sound)
 
 
client_cmd(id,"echo ====================")
 
client_cmd(id,"echo Bb1 3axoguTe Ha Avril Lavigne")
 
client_cmd(id,"echo Cs Music server - avril.zapto.org")
 
client_cmd(id,"echo Please visit our forum ==>")
 
client_cmd(id,"echo http:lavigne.at.ua/forum")
 
client_cmd(id,"echo =====================")
 
client_cmd(id,"cl_cmdrate 100")
 
client_cmd(id,"cl_updaterate 100")
 
client_cmd(id,"rate 20000")
}
public 
plugin_precache(){
 
precache_sound(connect_sound)


ok dont say anything about "includes" just the rest

vato loco [GE-S] 12-31-2008 17:03

Re: pls just check a small code
 
PHP Code:

client_print idprint_console"====================" );
client_print idprint_console"Bb1 3axoguTe Ha Avril Lavigne" );
client_print idprint_console"Cs Music server - avril.zapto.org" );
client_print idprint_console"Please visit our forum ==>" );
client_print idprint_console"http:lavigne.at.ua/forum" );
client_print idprint_console"=====================" ); 


mozart123 12-31-2008 17:29

Re: pls just check a small code
 
ok tnhx!!!


All times are GMT -4. The time now is 09:12.

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