AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   about tank throw (https://forums.alliedmods.net/showthread.php?t=96486)

lovemf 07-05-2009 16:15

about tank throw
 
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 07-12-2009 15:27

Re: about tank throw
 
who can help me.

Shenton 07-12-2009 16:25

Re: about tank throw
 
Probably an ability, try hooking this event http://wiki.alliedmods.net/Left_4_De...ts#ability_use

lovemf 07-12-2009 19:50

Re: about tank throw
 
Quote:

Originally Posted by Shenton (Post 870736)
Probably an ability, try hooking this event http://wiki.alliedmods.net/Left_4_De...ts#ability_use

thanks but i tryed not work.

thanks..,,

Dragonshadow 07-12-2009 21:01

Re: about tank throw
 
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.

Shenton 07-13-2009 00:11

Re: about tank throw
 
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;




All times are GMT -4. The time now is 19:05.

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