Raised This Month: $ Target: $400
 0% 

Plugin compile error (old plugin)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-17-2016 , 13:58   Re: Plugin compile error (old plugin)
Reply With Quote #10

PHP Code:
#include <amxmodx>  

#define PLUGIN "HUD MSG for VIP,Admin,Player" 
#define VERSION "1.0" 
#define AUTHOR "4iTGAME & Dim4ik" 

new const joining[] = "myproject/mysound.wav" 

public plugin_init(){ 
    
register_plugin(PLUGINVERSIONAUTHOR


public 
plugin_precache()
{
    
precache_soundjoining )  
}

public 
client_putinserver(id)set_task(5.0,"flappybuird",id
public 
flappybuird(id

    new 
szName[32
    
get_user_name(idszNamecharsmax(szName)) 
      
    if(
get_user_flags(id) & ADMIN_LEVEL_B
    { 
        
set_dhudmessage(025500.280.1606.012.0
        
show_dhudmessage(id"Glad to see the Administrator %s! Enjoy the game."szName
        
client_cmdid"spk ^"sound/%s^""joining // copy and paste this line where you want the sound to play
    

    else if(
get_user_flags(id) & ADMIN_LEVEL_H
    { 
        
set_dhudmessage(025500.280.1606.012.0
        
show_dhudmessage(id"Glad to see you VIP %s! Enjoy the game."szName
    } 
    else 
    { 
        
set_dhudmessage(025500.280.1606.012.0
        
show_dhudmessage(id"Glad to see you %s ! Enjoy the game."szName
    } 

      
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE 
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par } 
*/ 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 05-17-2016 at 14:08.
wickedd 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 18:32.


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