Raised This Month: $ Target: $400
 0% 

Drop Auto Get Scout..help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Aultz
Member
Join Date: Jul 2005
Old 09-01-2005 , 22:36   Drop Auto Get Scout..help
Reply With Quote #1

Working on it..any help would be great
1.) im trying to get it so it can be both autosnipers teh T and the cT one.i only have one right now..2.) imma gonna display a HUD 3) take away the burrie.

Code:
/* AMXX Mod script. 
* 
* This file is provided as is (no warranties). 
* A better awp restriction for cs (this works for 1.6) 
* This plugin changes a players auto to a scout.
* Drops Auto gives Scout
*
*
* COMMANDS: 
* --------------- 
* amx_killautos (1|0) 1= On 0= Off
*/ 

#include <amxmodx> 
#include <amxmisc>
#include <fun> 

public check_g3sg1(id) { 
	if (get_cvar_num("amx_killautos")!=1) 
	{ 
	return PLUGIN_CONTINUE 
	}else{ 
	new parm[1]
	parm[0] = id		
	set_task(0.1, "drop_g3sg1", id, parm, 1)
	} 
    	return PLUGIN_CONTINUE 
} 

public drop_g3sg1 (parm[]) { 
    new id = parm[0] 
    new origin[3] 
    get_user_origin(id, origin, 0) 
    origin[2] -= 2000 
    set_user_origin(id, origin) 
    engclient_cmd(id, "drop", "weapon_g3sg1") 
    give_item(id, "weapon_scout") 
    give_item(id, "ammo_762nato") 
    origin[2] += 2005 
    set_user_origin(id, origin) 
}

public plugin_init() { 
      register_plugin("Kill-AllAutos", "0.0.1", "pWn | ShaRPiE") 
      register_event("WeapPickup", "check_g3sg1", "b","1=18") 
      register_cvar("amx_killautos", "1") 
      return PLUGIN_CONTINUE 
}
__________________

^ServerIs2Pro4YOU!!
Aultz 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 14:32.


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