Raised This Month: $ Target: $400
 0% 

why loop two sprites?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
psychedelic_hallucinogen
BANNED
Join Date: Dec 2012
Old 12-24-2012 , 13:08   why loop two sprites?
Reply With Quote #1

wath video

http://www.youtube.com/watch?v=bE_-4RBMJBA

PHP Code:
#include amxmodx
#include fakemeta
#include engine

new YELLOW

public plugin_init()
{
register_message(SVC_TEMPENTITY,"grenade")
}

public 
grenade(ent)
{
while((
ent find_ent_by_class(ent,"grenade")))
{
if(
get_msg_arg_int(1) != TE_EXPLOSION || pev_valid(ent) == 0)
return 
PLUGIN_CONTINUE

set_msg_arg_int
(5,ARG_BYTE,YELLOW)
set_msg_arg_int(6,ARG_BYTE,15)
set_msg_arg_int(7,ARG_BYTE,27)
}
return 
PLUGIN_CONTINUE
}

public 
plugin_precache()
{
YELLOW precache_model("sprites/explode/yellow.spr")


Last edited by YamiKaitou; 12-27-2012 at 22:29.
psychedelic_hallucinogen 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 13:30.


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