Raised This Month: $ Target: $400
 0% 

How to force a weapon.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-09-2006 , 14:35   How to force a weapon.
Reply With Quote #1

Hi,

I wonder how you should force a weapon to all users when a round starts.

This is a plugin i made for myself but i dont think it forces it every round start:

Code:
#include <amxmodx> #include <cstrike> #include <fun> public plugin_init() {     register_plugin("weapons", "1.00", "MaTTe")     register_cvar("sv_weapons", "1")     register_cvar("sv_weaponstimer", "1")     set_task(get_cvar_float("sv_weaponstimer"), "giveWeapon") } public giveWeapon(id) {     new CsTeams:iTeam = cs_get_user_team(id)     switch(iTeam)     {         case CS_TEAM_T:         {             if(get_cvar_num("sv_weapons")==0)             {             client_print(id, print_chat, "The plugin is closed by an administrator."             }             else             {             give_item(id, "weapon_ak47")             }         }         case CS_TEAM_CT:         {             if(get_cvar_num("sv_weapons")==0)             {             client_print(id, print_chat, "The plugin is closed by an administrator."             }             else             {             give_item(id, "weapon_m4a1")             }         }     }     set_task(get_cvar_float("sv_weaponstimer"), "giveWeapon") }
mateo10 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 07:01.


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