Raised This Month: $ Target: $400
 0% 

Help me PLZ.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-06-2007 , 14:41   Re: Help me PLZ.
Reply With Quote #10

Something like this :

Code:
#include <amxmodx> #if AMXX_VERSION_NUM < 180     #define charsmax(%1)    sizeof(%1) - 1 #endif #define PLUGIN "Leave Sounds" #define VERSION "1.0" #define AUTHOR "Amxx Community" new const soundlist[][] = {     "konczyc.wav",     "naraska.wav",     "3maj.wav",     "cya.wav",     "narka.wav",     "elo.wav" } public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public plugin_precache() {     new file[32]     for(new i; i<sizeof soundlist; i++)     {         formatex(file, charsmax(file), "FtF/%s", soundlist[i])         precache_sound(file)     } } public client_disconnect(id) {     new rand = random_num(0, charsmax(soundlist))     client_cmd(0, "spk FtF/%s", soundlist[rand]) }

Last edited by ConnorMcLeod; 11-06-2007 at 14:56.
ConnorMcLeod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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