Raised This Month: $ Target: $400
 0% 

Can not have 2 weapons at the same time code inside.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aim4lex
BANNED
Join Date: Dec 2006
Old 12-29-2006 , 07:07   Can not have 2 weapons at the same time code inside.
Reply With Quote #1

Hey guys, i need some help with this plugin "Every admin with flag F automaticly getting extra scout, but there is one problem, i can not have another gun when this plugin active, it just gives me scout, when i bought another weapon , my scout dissapire.Could you help me with it so i could use both weapon scout + any other weapon that im bought. Thanks.

Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Give Admin m3"
#define VERSION "1.0"
#define AUTHOR "The Specialist"
#define MAX_PLAYERS  32
new bool:g_restart_attempt[MAX_PLAYERS + 1];
new g_Switch;
public plugin_init()
 {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 g_Switch = register_cvar("admin_give_scout","1");
 register_event("ResetHUD", "event_hud_reset", "be");
 register_clcmd("fullupdate", "clcmd_fullupdate") ;
 register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in");
}
public clcmd_fullupdate()
{ 
 return 1;
}
public event_restart_attempt()
{
 new players[32], num;
 get_players(players, num, "a");
 
 for (new i; i < num; ++i)
 {
  g_restart_attempt[players[i]] = true;
 }
}
public event_hud_reset(id)
{
 if (g_restart_attempt[id])
 {
  g_restart_attempt[id] = false;
  return;
 }
 event_player_spawn(id)
}
public event_player_spawn(id) 
{
 if(get_pcvar_num(g_Switch) &&( get_user_flags(id) & ADMIN_LEVEL_F))
 {
  give_item(id,"weapon_scout");
  return 0;
 }
 return 1;
}

Last edited by aim4lex; 12-31-2006 at 01:16.
aim4lex is offline
aim4lex
BANNED
Join Date: Dec 2006
Old 12-31-2006 , 01:16   Re: Can not have 2 weapons at the same time code inside.
Reply With Quote #2

up
aim4lex is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-31-2006 , 01:22   Re: Can not have 2 weapons at the same time code inside.
Reply With Quote #3

Buy the weapon then give yourself the scout.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
aim4lex
BANNED
Join Date: Dec 2006
Old 12-31-2006 , 01:40   Re: Can not have 2 weapons at the same time code inside.
Reply With Quote #4

Im playing on CSDM server not originaly cs, so i can not do it.

Last edited by aim4lex; 12-31-2006 at 02:02.
aim4lex 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 22:30.


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