Raised This Month: $ Target: $400
 0% 

Need Help With XP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 02-03-2016 , 17:59   Re: Need Help With XP
Reply With Quote #4

PHP Code:
// Global variable
new g_iKillCount[33]

public 
fw_PlayerKilled(iVictimiKiller)  
{
    if (!
is_user_alive(iKiller) || iVictim == iKiller
        return
    
    
has_speed[victim] = false
    remove_task
(victim+TASK_SPEED_BOOST)
    
    
// Increase kill count for killer
    
g_iKillCount[iKiller] ++
    
    
// If kill count equal to two
    
if(g_iKillCount[iKiller] == 2)
    {
        
// Do something
    
}
    
    
// If kill count equal to four
    
if(g_iKillCount[iKiller] == 4)
    {
        
// Do something
    
}

zmd94 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 09:29.


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