Raised This Month: $ Target: $400
 0% 

Fake gunshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 08-26-2006 , 17:47   Re: Fake gunshot
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN      "Test" #define VERSION    "Test" #define AUTHOR      "Test" public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR);     register_clcmd("fs","fs"); } public fs(id) {     new iOrigin[3]     get_user_origin(id, iOrigin, 3)         message_begin(MSG_ALL, SVC_TEMPENTITY, iOrigin)     write_byte(2) //TE_GUNSHOT     write_coord(iOrigin[0]) // Position     write_coord(iOrigin[1])     write_coord(iOrigin[2])     message_end()     message_begin(MSG_ALL, SVC_TEMPENTITY, iOrigin)     write_byte(9) //TE_SPARKS     write_coord(iOrigin[0]) // Position     write_coord(iOrigin[1])     write_coord(iOrigin[2])     message_end()     return PLUGIN_HANDLED }
Should work like this (write_byte( //TE_SPARKS changed to write_byte(9)
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Reply



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 07:03.


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