Raised This Month: $ Target: $400
 0% 

Script Help Please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 05-12-2004 , 01:09   Script Help Please
Reply With Quote #1

I've been working on this plugin for a while and I compiled it with no errors on the compiler that came with amxx, but when I tryed the online compiler I got 3 errors,

Code:
#include <amxmodx> #include <amxmisc>     public plugin_precache() { precache_sound("misc/tslap.wav") }   public admin_tslap(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED     new name[32], name2[32] new arg[32] get_user_name(id,name2,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)   client_cmd(0,"spk misc/tslap")     set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2)     show_hudmessage(100,"%s Was Bitchslapped!!!") return PLUGIN_HANDLED } public tslap(ids[]){    set_task(0.2, "slap_player", 0, ids, 1, "a", 5)   return PLUGIN_CONTINUE } public slap_player(ids[]) { user_slap(ids[0],5) // Player is slapped with 5 Damage    return PLUGIN_CONTINUE }

If anyone could help me out that would be great Thank You.
__________________
Nick is offline
Send a message via MSN to Nick
 


Thread Tools
Display Modes

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 10:59.


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