Raised This Month: $51 Target: $400
 12% 

*help* why is this not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 05-09-2017 , 09:42   *help* why is this not working
Reply With Quote #1

PHP Code:
#include <amxmodx>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
 
new bool:ShowEffect;
new 
Beamspr;
 
 
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("Beam"2"1=Round_End")
}
 
 
public 
plugin_precache()
{
    
Beamspr precache_model"sprites/zbeam2.spr" );
}
public 
Beam(id)
{
    
remove_task(id)
    {
        
ShowEffect true;
        
set_task0.20"WinnerEffect"id );
        
set_task5.20 ,"StopShow");
    }
}
 
 
public 
StopShow()
{
    
ShowEffect false
}
public 
WinnerEffectclient )
{
    if( 
ShowEffect )
    {
        new 
RGB];
        
RGB] = random250 );
        
RGB] = random250 );
        
RGB] = random250 );
   
        static 
Origin];
        
get_user_originclientOrigin );
       
        
message_beginMSG_BROADCASTSVC_TEMPENTITY );
        
write_byteTE_BEAMTORUS );
        
write_coordOrigin] );
        
write_coordOrigin] );
        
write_coordOrigin] );
        
write_coordOrigin] );
        
write_coordOrigin] );
        
write_coordOrigin] + 400 );
        
write_shortBeamspr );
        
write_byte);
        
write_byte);
        
write_byte);
        
write_byte80 );  
        
write_byte);
        
write_byteRGB] );
        
write_byteRGB] );
        
write_byteRGB] );
        
write_byte200 );
        
write_byte);       
        
message_end( );
   
        
set_task0.20 ,"WinnerEffect"client );
    }

__________________
All you need is carb
Giass is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-09-2017 , 10:00   Re: *help* why is this not working
Reply With Quote #2

There is no (id) in round end event.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-09-2017 , 10:02   Re: *help* why is this not working
Reply With Quote #3

PHP Code:
public Beam(id

PHP Code:
public Beam( ) 
Then loop through the players to get their index
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 05-09-2017 , 10:07   Re: *help* why is this not working
Reply With Quote #4

Quote:
Originally Posted by wickedd View Post
PHP Code:
public Beam(id

PHP Code:
public Beam( ) 
Then loop through the players to get their index
PHP Code:
#include <amxmodx> 
  
#define PLUGIN "New Plug-In" 
#define VERSION "1.0" 
#define AUTHOR "author" 
  
  
new bool:ShowEffect
new 
Beamspr
  
  
public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
register_logevent("Beam"2"1=Round_End"

  
  
public 
plugin_precache() 

    
Beamspr precache_model"sprites/zbeam2.spr" ); 

public 
Beam() 

    
remove_task() 
    { 
        
ShowEffect true
        
set_task0.20"WinnerEffect" ); 
        
set_task5.20 ,"StopShow"); 
    } 

  
  
public 
StopShow() 

    
ShowEffect false 

public 
WinnerEffectclient 

    if( 
ShowEffect 
    { 
        new 
RGB]; 
        
RGB] = random250 ); 
        
RGB] = random250 ); 
        
RGB] = random250 ); 
    
        static 
Origin]; 
        
get_user_originclientOrigin ); 
        
        
message_beginMSG_BROADCASTSVC_TEMPENTITY ); 
        
write_byteTE_BEAMTORUS ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] + 400 ); 
        
write_shortBeamspr ); 
        
write_byte); 
        
write_byte); 
        
write_byte); 
        
write_byte80 );   
        
write_byte); 
        
write_byteRGB] ); 
        
write_byteRGB] ); 
        
write_byteRGB] ); 
        
write_byte200 ); 
        
write_byte);        
        
message_end( ); 
    
        
set_task0.20 ,"WinnerEffect"client ); 
    } 

like that?
__________________
All you need is carb
Giass is offline
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 05-09-2017 , 10:07   Re: *help* why is this not working
Reply With Quote #5

i tried that and this is not working too
__________________
All you need is carb
Giass is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-09-2017 , 10:49   Re: *help* why is this not working
Reply With Quote #6

PHP Code:
#include <amxmodx> 
  
#define PLUGIN "New Plug-In" 
#define VERSION "1.0" 
#define AUTHOR "author" 
  
  
new bool:ShowEffect
new 
Beamspr
  
  
public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
register_logevent("Beam"2"1=Round_End"

  
  
public 
plugin_precache() 

    
Beamspr precache_model"sprites/zbeam2.spr" ); 

public 
Beam() 

        
ShowEffect true
        if(
task_exists(250))  remove_task(250);
        
set_task0.20"WinnerEffect"250__"b"); 
        
set_task5.20 ,"StopShow"); 

  
  
public 
StopShow() 

    
ShowEffect false 

public 
WinnerEffecttaskid 

    if( 
ShowEffect 
    { 
        new 
RGB], players[32], pnum;
        
RGB] = random250 ); 
        
RGB] = random250 ); 
        
RGB] = random250 ); 
         
get_players(players,pnum,"ah")
        for(new 
iOrigin], clientpnumi++) {
        
client players[i];
        
get_user_originclientOrigin ); 
        
        
message_beginMSG_BROADCASTSVC_TEMPENTITY ); 
        
write_byteTE_BEAMTORUS ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] ); 
        
write_coordOrigin] + 400 ); 
        
write_shortBeamspr ); 
        
write_byte); 
        
write_byte); 
        
write_byte); 
        
write_byte80 );   
        
write_byte); 
        
write_byteRGB] ); 
        
write_byteRGB] ); 
        
write_byteRGB] ); 
        
write_byte200 ); 
        
write_byte);        
        
message_end( );
        }
    }
    else 
remove_task(taskid)

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-09-2017 at 10:52.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 10:22.


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