Raised This Month: $ Target: $400
 0% 

Help-Me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lawiet
Junior Member
Join Date: Aug 2013
Old 08-29-2013 , 15:32   Help-Me
Reply With Quote #6

My Plugin Is Not Giving Weapon, More When I Player I put in place of id Compiles When I id I put in place the Player Not Compile Error

Quote:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "WeaponGive"
#define VERSION "1.0"
#define AUTHOR "Dr.House"

new CurrentRound
new maxplayers
new g_menu_active
new bool:cmdAcces[33], g_iMaxPlayers

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("LogEvent_RoundStart", 1, "1=Round_Start" );
maxplayers = get_maxplayers()
g_menu_active = register_cvar("menu_active", "1");
}

public LogEvent_RoundStart()
{
CurrentRound++;
new players[32], player, pnum;
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_H)
{
give_item(player, "weapon_m3")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"ammo_556nato")
give_item(player,"weapon_deagle")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"ammo_50ae")
give_item(player,"weapon_knife")
give_item(player,"weapon_hegrenade")
give_item(player, "item_assaultsuit");
give_item(player, "item_thighpack");
cs_set_user_bpammo( player, CSW_M3, 99 )
cs_set_user_bpammo( player, CSW_DEAGLE, 99 )

if (!get_pcvar_num(g_menu_active))
return PLUGIN_CONTINUE

if(CurrentRound >= 1)

return PLUGIN_HANDLED
}
}
}
Lawiet 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 19:14.


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