Raised This Month: $12 Target: $400
 3% 

A tag that I can call back to?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 10-05-2014 , 13:03   A tag that I can call back to?
Reply With Quote #1

Is there some kind of tag that I can call back to, such as the stock functions, but with the functions (not sure what they are called) that the name changes what exactly it does, such as OnPluginStart and OnClientPutInServer, etc. This is part of a bigger plugin, where I need to put taunt data into other functions. Here are the functions that I need to put inside the other functions:
PHP Code:
public Action:HUD(Handle:timerany:client)
{

}

public 
OnEntityCreated(entity, const String:classname[])
{

}

public 
SDKHookCB_OnSceneSpawnedPost(entity)
{


I need to put all of those into a bigger plugin, but I can't put functions inside of functions, so is there a different way to do this?

I know this probably sounds really weird, but if you can figure out what looking for, I would really appreciate help.

Thanks!

EDIT
I already know about stock functions, where you can type:
PHP Code:
public Action:Command_Spycrab(clientargs)
{
    
tauntdata(client)
}

stock tauntdata(client)
{
    
PrintToChat(client"TAUNT DATA");
    return 
Plugin_Handled;

I'm just looking for a tag that you can add that creates a name for it, and you can call it inside another function, such as:

public Action:Command_Spycrab(client, args, stock:<insertnamehere>(client))
and call it with <insertnamehere>(client)

Something like that, though I know stock isn't a tag.

My main reason of wanting this, is that I want to put spycrab taunt data inside the Map Zones plugin, where only if you are inside a Map Zone, you will be killed if you spycrab.
__________________
Hello

Last edited by Ibanezez; 10-05-2014 at 13:07.
Ibanezez is offline
 



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 00:44.


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