Raised This Month: $ Target: $400
 0% 

[REQ] ran def kit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-29-2017 , 13:16   Re: [REQ] ran def kit
Reply With Quote #1

Quote:
Originally Posted by OciXCrom View Post
#include <amxmodx>
#include <fun>

public plugin_init()
{
register_plugin("Random Defuse Kit", "1.0", "OciXCrom @ alliedmods.net")
register_logevent("OnRoundStart", 2, "1=Round_Start")
}

public OnRoundStart()
{
new iPlayers[32], iPnum
get_players(iPlayers, iPnum, "ae", "CT")

if(iPnum)
{
new iPlayer = iPlayers[random(iPnum)]
give_item(iPlayer, "item_thighpack")

new szName[32]
get_user_name(iPlayer, szName, charsmax(szName))
client_print(0, print_chat, "* %s received a free defuse kit.", szName)
}
}
What's that for ?
__________________

Last edited by edon1337; 01-29-2017 at 13:16.
edon1337 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 02:01.


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