View Single Post
drag1c
Junior Member
Join Date: Apr 2014
Location: Serbia, Nova Pazova
Old 09-26-2021 , 11:20   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #678

Quote:
Originally Posted by OciXCrom View Post
Thanks.

Yes, those things can be made very easily. Here's a bunch of already made addons for the plugin - https://www.amxx-bg.info/pluginlab/?name=rank (scroll down)

Here's a simple example on how to get a HE grenade on each spawn if you're level 10 or above:

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

public plugin_init()
{
    
register_plugin("CRXRanks: Weapon Example""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(!
is_user_alive(id))
        return

    if(
crxranks_get_user_level(id) >= 10)
        
give_item(id"weapon_hegrenade")

Hello !
How to set this to work after 3rd round?
drag1c is offline
Send a message via Skype™ to drag1c