Raised This Month: $ Target: $400
 0% 

Level


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2009 , 21:54   Level
Reply With Quote #1

I having problem with this plugin.

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

new MyGlobalVar33 ]

public 
plugin_init( ) 
{
        
register_plugin"kills level""1.0""ASD" )
        
register_event"DeathMsg""Event_PlayerKilled""a" )
}

public 
Event_PlayerKilled( )
{
     new 
Killer read_data)
     
MyGlobalVarKiller ]++;

     if ( 
MyGlobalVarKiller ] == )
     {
          
give_itemKiller"weapon_hegrenade" )
     }

     if ( 
MyGlobalVarKiller ] == )
     {
          
give_itemKiller"weapon_ak47" )
     }

     if ( 
MyGlobalVarKiller ] == )
     {
          
give_itemKiller"weapon_m4a1" )
     } 

Like the plugin say if the user score is 1/k he get a grenade.

But i want every 1 kill user get a grenade. even if his score is 5k
zombieplague 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 13:38.


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