AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fix my code = Carma (https://forums.alliedmods.net/showthread.php?t=83928)

JoneQ 01-17-2009 17:54

Fix my code = Carma
 
hello there, it's my first post here and im just happy that here's alot's of expert's to help me ;)

here's my problem that i can't find, im newbie in scripting :)

Code:

/*
VoMod v0.1
By JoneQ
*/

#include <amxmodx>
#include <amxmisc>

new P_LOL[] = "misc/lol.wav";

public plugin_init() {

        register_plugin("Voice Mod","0.1","JoneQ");
        register_concmd("say /lol","LolPlay");
}

public LolPlay(id)
{
precache_sound(P_LOL)

}

Sn!ff3r 01-17-2009 21:07

Re: Fix my code = Carma
 
PHP Code:

#include <amxmodx>
#include <amxmisc>

new P_LOL[] = "misc/lol.wav";

public 
plugin_init() {
    
    
register_plugin("Voice Mod","0.1","JoneQ");
    
register_concmd("say /lol","LolPlay");
}

public 
LolPlay(id)
{
    
client_cmd(id,"spk %s",P_LOL)
}

public 
plugin_precache()
{
    
precache_sound(P_LOL)


Enjoy! :)


All times are GMT -4. The time now is 01:41.

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