Raised This Month: $ Target: $400
 0% 

amx_uberslap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 10-17-2005 , 02:43   amx_uberslap
Reply With Quote #1

Hi guys, it's been awhile posting here.

I just upgraded to AMX 1.60 on both a Windows and a Linux server. Everything is running great so far except for a few plugins that I really enjoy using. One of which is amx_uberslap.

The problem that I am having with this plugin is that it no longer plays the attached sound file that is associated with this plugin. No its not an issue with the sound file being in the wrong place on the server or the client's machine, I use this plugin on AMX 1.01 and it works perfectly but on 1.55 and 1.60 the plugin compiles fine and works however it just doesn't play the attached sound file.

Any help would be appreciate. I provided a 1.60 compiled version, sma, and the sound file.

Thank you for your help.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public admin_slap(id,level,cid){     if (!cmd_access(id,level,cid,2))     return PLUGIN_HANDLED     new name[32]     new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,5)     if (!player)     return PLUGIN_HANDLED     new ids[2]     ids[0] = player     get_user_name(player,name,32)     disarm_player(id,player)     set_task(0.1, "slap_player", 0, ids, 1, "a", 100)     set_task(11.5, "last_words", 0, ids, 1, "a", 0)     return PLUGIN_HANDLED } public disarm_player(id,victim){     new name[32], origin[3]     get_user_origin(victim,origin)     origin[2] -= 2000     set_user_origin(victim,origin)     new iweapons[32], wpname[32], inum     get_user_weapons(victim,iweapons,inum)     for(new a=0;a<inum;++a){         get_weaponname(iweapons[a],wpname,31)         engclient_cmd(victim,"drop",wpname)     }     engclient_cmd(victim,"weapon_knife")     origin[2] += 2005     set_user_origin(victim,origin)     get_user_name(victim,name,31)     return PLUGIN_CONTINUE } public last_words(ids[]) {     client_cmd(0,"spk misc/knockedout")     return PLUGIN_HANDLED } public slap_player(ids[]) {     new id = ids[0]     new power = 1,nopower= 0     if (get_user_health(id) > 1){         user_slap(id,power)     } else {         user_slap(id,nopower)     }     return PLUGIN_CONTINUE } public plugin_init(){     register_plugin("AMX Uber Slap","0.9.3","Skullz.NET")     register_concmd("amx_uberslap","admin_slap",ADMIN_SLAY,"<authid, nick or #userid>")     return PLUGIN_CONTINUE }
Attached Files
File Type: zip amx_uberslap.zip (24.6 KB, 841 views)
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
 



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 23:51.


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