Raised This Month: $ Target: $400
 0% 

Set checkpoints


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-17-2009 , 10:50   Re: Set checkpoints
Reply With Quote #5

hihihihi ))))

whats here wrong?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
const gHudRed 255;
const 
gHudGreen 255;
const 
gHudBlue 255;
new 
g_Classname[] = "func_timer"
const Float:gfTextX = -1.0;
const 
Float:gfTextY 0.84;
const 
gHudEffects 0;
const 
Float:gfHudFxTime 0.0;
const 
Float:gfHudHoldTime 0.25;
const 
Float:gfHudFadeInTime 0.0;
const 
Float:gfHudFadeOutTime 0.0;
const 
gHudChannel 2;

public 
plugin_init()
{
    
register_plugin("test","one","1?")
   
    
register_clcmd("say /addpoint","Cmdcheckpoint")
   
    
register_forward(FM_Touch,"ForwardTouch")
}

public 
Cmdcheckpoint(id)
{
    new 
Ent engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"))
    
set_pev(Ent,pev_classname,g_Classname)
    
set_pev(Ent,pev_solid,SOLID_TRIGGER)
    
engfunc(EngFunc_SetSize,Ent,Float:{-50.0,-50.0,-50.0},Float:{50.0,50.0,50.0})
    
set_pev(Ent,pev_owner,id)
}

public 
ForwardTouch(Ptd,Ptr)
{
    new 
Classname[33],Ent Ptd,id Ptr
    pev
(Ptd,pev_classname,Classname,32)
   
    if(!
equal(Classname,g_Classname))
    {
        
Ent Ptr
        id 
Ptd
       
        pev
(Ptr,pev_classname,Classname,32)
       
        if(!
equal(Classname,g_Classname))
            return
    }
   
    new 
Owner pev(Ent,pev_owner)
    if(
Owner != id)
        return
   
        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
        
show_hudmessage(id"Checkpoint 1...");

__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 08:58.


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