Raised This Month: $ Target: $400
 0% 

He2Smoke


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
R1ddl3r
Member
Join Date: May 2004
Old 06-01-2005 , 16:09   He2Smoke
Reply With Quote #1

Hallo, ich habe das Plugin "awp2scout" genommen und versuche es umzuwandeln, sodass die HE mit der Smoke ersetzt wird.
Leider klappt das irgentwie nicht ganz.
hier der Code

Code:
#include <amxmodx> 
#include <amxmisc>
#include <fun> 

public check_he(id) { 
	if (get_cvar_num("amx_he2smoke")!=1) 
	{ 
	return PLUGIN_CONTINUE 
	}else{ 
	new parm[1]
	parm[0] = id		
	set_task(0.1, "drop_he", id, parm, 1)
	} 
    	return PLUGIN_CONTINUE 
} 

public drop_he (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_hegrenade") 
    give_item(id, "weapon_smokegrenade") 
    origin[2] += 2005 
    set_user_origin(id, origin) 
}

public plugin_init() { 
      register_plugin("He2Smoke", "0.1", "R1ddl3r") 
      register_event("WeapPickup", "check_he", "b","1=18") 
      register_cvar("amx_he2smoke", "1") 
      return PLUGIN_CONTINUE 
}
Ich kann immer noch HE-Granaten aufnehmen. Passieren tut nix.
R1ddl3r is offline
 


Thread Tools
Display Modes

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 16:46.


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