Raised This Month: $ Target: $400
 0% 

giveweapons on round start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mrpanda
Senior Member
Join Date: Jan 2007
Location: Cali
Old 05-12-2007 , 22:30   giveweapons on round start
Reply With Quote #1

how do i give user weapon on round start like i want to give everyone

a deagle and usp on round start along with a he-gernade
__________________
premier gaming community http://www.mrpanda.net

I have come back from my slumber.
mrpanda is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 05-12-2007 , 22:40   Re: giveweapons on round start
Reply With Quote #2

Code:
/* Gives item to player, name of item can start  * with weapon_, ammo_ and item_. This event  * is announced with proper message to all players. */ give_item(index, const item[]);
__________________
djmd378 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-13-2007 , 04:03   Re: giveweapons on round start
Reply With Quote #3

something like this
Code:
#include <amxmodx>
#include <fun>
 
#define PLUGIN ""
#define VERSION ""
#define AUTHOR ""
 
public plugin_init() {
 
     register_plugin(PLUGIN, VERSION, AUTHOR)
     register_logevent("round_start", 2, "1=Round_Start")
}
 
public round_start() {
 
   new players[32], num
   get_players(players, num)
 
   new player
   for(new i = 0; i < num; i++)
   {
        player = players[i]
 
         give_item(player,"weapon_deagle")
         give_item(player,"ammo_50ae")
         give_item(player,"ammo_50ae")
         give_item(player,"ammo_50ae")
         give_item(player,"weapon_hegrenade")
   }
}
This code gives to all players on round start(when freezetime is 0) a deagle + henade
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 05-13-2007 at 05:45.
Alka is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-13-2007 , 05:30   Re: giveweapons on round start
Reply With Quote #4

This event is happen before player spawn so this code will give items only to a players that is respawning.
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-13-2007 , 05:45   Re: giveweapons on round start
Reply With Quote #5

Oh...I changed the code to give the wepons on round_start! Ty VEN
__________________
Still...lovin' . Connor noob! Hello
Alka 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 10:40.


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