Raised This Month: $ Target: $400
 0% 

EXOLENT HELP LEASE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 02-21-2009 , 17:34   EXOLENT HELP LEASE
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <zombieplague>

public init(id)

    
        new 
damage read_data(2)
        new 
points[33]
        new 
g_haspoints[33]
        
        if (
damage)
        {
            
set_task(15.0"TaskPoint"id)
            
        }
        
        if (
damage == 500 || damage 500)
        {
            
points[id] = 30
            g_haspoints
[id] = true
            remove_task
(id,1)
            
set_task(15.0"TaskPoint"id)
        }
        
        if ( 
points[id] == 90)
        {
            
zp_set_user_ammo_packs(id,2)
        
        
            
set_hudmessage(0100200, -1.00.5520.14.00.020.027)
            
show_hudmessage(id,"Combo! %i Damage! ,You get 2 Ammo Packs As Reward!  "damage)            
    }
}

public 
plugin_init() {  
   
register_plugin("[ZP] Server Addon: Combo Rewards","0.1","AlejandroSk")  
   
register_event("Damage""init""b""2!0""3=0""4!0"
        } 
Need add a task ( TaskPoint ) that set point of the player to 0 can anyone help e?
AlejandroSk is offline
Send a message via MSN to AlejandroSk
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-21-2009 , 18:03   Re: Can help me please?
Reply With Quote #2

first put this in the top of the file not in damage event

PHP Code:
new points[33
new 
g_haspoints[33
then add this

PHP Code:
public TaskPoint(id){
        
    
points[id]=0
    g_haspoints
[id]=0

__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 02-21-2009 at 18:10.
Starsailor is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 02-21-2009 , 18:23   Re: Can help me please?
Reply With Quote #3

where i add public TaskPoint ? =(

edit: done thank u +k!

Last edited by AlejandroSk; 02-21-2009 at 18:26.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
Old 02-21-2009, 18:28
Starsailor
This message has been deleted by Starsailor. Reason: done
Old 02-21-2009, 18:51
AlejandroSk
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 02-21-2009, 20:13
AlejandroSk
This message has been deleted by Brad. Reason: whatever you want to call it, the object is the same, don't do it
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-21-2009 , 20:23   Re: EXOLENT HELP LEASE
Reply With Quote #4

As per the Global Forum Rules, you need to have a descriptive topic title. If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 17:08.


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