Raised This Month: $ Target: $400
 0% 

He2Smoke


Post New Thread Reply   
 
Thread Tools Display Modes
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
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-01-2005 , 16:58  
Reply With Quote #2

next time try to post in english.

dont know why it isnt working, but can you drop a he?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-02-2005 , 12:53  
Reply With Quote #3

no not in cs or cz
__________________
- Bye bye!
nightscreem is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-02-2005 , 13:38  
Reply With Quote #4

No you can't normally drop grenades. You could try setting the ammo of hegrenades to 0 for that player though.
Johnny got his gun is offline
R1ddl3r
Member
Join Date: May 2004
Old 06-02-2005 , 14:14  
Reply With Quote #5

i only know the command "give_item". whats the commando to drop the ammo or something like that.

it that right?:
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 awp to a scout.
* It basically burries the player 2000 units down, drops the awp,
* gives a scout/ammo and puts them back.
*
* Version:
* 0.2 - Updated for AMXX
*	- Code shortened and cleaned
*
* Install:
* ---------------
* Add to your awp2scout.amx to your plugins.ini and add the amx_awp2scout cvar to your amxx.cfg
*
* COMMANDS: 
* --------------- 
* amx_awp2scout (1|0) 1= On 0= Off
*/ 

#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) 
        cs_set_user_bpammo(id, 4, 0)
    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 
}
R1ddl3r is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-02-2005 , 17:20  
Reply With Quote #6

Use cstrike module. Interface in cstrike.ini.
Johnny got his gun is offline
R1ddl3r
Member
Join Date: May 2004
Old 06-02-2005 , 17:29  
Reply With Quote #7

i can't find the cstrike.ini.
where is this file?
R1ddl3r is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-02-2005 , 17:31  
Reply With Quote #8

you need the cstrike addon...
http://www.amxmodx.org/downloads.php
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
R1ddl3r
Member
Join Date: May 2004
Old 06-02-2005 , 17:40  
Reply With Quote #9

i have, but there isn't a cstrike.ini
R1ddl3r is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-02-2005 , 20:15  
Reply With Quote #10

he means cstrike.inc
__________________
- Bye bye!
nightscreem 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 16:46.


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