Raised This Month: $ Target: $400
 0% 

about tank throw


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lovemf
BANNED
Join Date: May 2009
Old 07-05-2009 , 16:15   about tank throw
Reply With Quote #1

Code:
if(StrEqual(Weapon, "tank_claw"))
this can get tank claw,but what is tank throw?


and how can i get more this
Code:
if(StrEqual(Weapon, "xxxxxxxx"))

thanks everyone and sorry my bad english
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 07-12-2009 , 15:27   Re: about tank throw
Reply With Quote #2

who can help me.
lovemf is offline
Shenton
Junior Member
Join Date: Jul 2009
Location: Paris
Old 07-12-2009 , 16:25   Re: about tank throw
Reply With Quote #3

Probably an ability, try hooking this event http://wiki.alliedmods.net/Left_4_De...ts#ability_use
__________________
Shenton is offline
lovemf
BANNED
Join Date: May 2009
Old 07-12-2009 , 19:50   Re: about tank throw
Reply With Quote #4

Quote:
Originally Posted by Shenton View Post
Probably an ability, try hooking this event http://wiki.alliedmods.net/Left_4_De...ts#ability_use
thanks but i tryed not work.

thanks..,,

Last edited by lovemf; 07-12-2009 at 20:00. Reason: lo
lovemf is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 07-12-2009 , 21:01   Re: about tank throw
Reply With Quote #5

Hook ability_use, and have it printtochatall the string (And maybe the context) and see what it tells you when you start to throw a rock as tank.
Dragonshadow is offline
Shenton
Junior Member
Join Date: Jul 2009
Location: Paris
Old 07-13-2009 , 00:11   Re: about tank throw
Reply With Quote #6

PHP Code:
public OnPluginStart()
{
    
HookEvent("ability_use"EventAbility);
}

public 
Action:EventAbility(Handle:event, const String:name[], bool:dontBroadcast)
{
    
decl String:ability[32], String:userName[33];
    
GetEventString(event"ability"abilitysizeof(ability));
    new 
userid GetClientOfUserId(GetEventInt(event"userid"));
    
GetClientName(useriduserNamesizeof(userName));

    
PrintToChatAll("%s fired ability: %s"userNameability);

    return 
Plugin_Continue;

__________________
Shenton 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 03:34.


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