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

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: Whitez
Forum: Scripting Help 05-30-2016, 13:57
Replies: 11
Views: 1,809
Posted By Whitez
Re: Question about Natives

This is how i did it actualy, didn't use param_bryef, is it wrong this way ? ( i deleted irelevant code )



public plugin_init()
{
g_Forwards[FW_USER_INFECT_PRE] =...
Forum: Scripting Help 05-29-2016, 21:17
Replies: 11
Views: 1,809
Posted By Whitez
Re: Question about Natives

I am sorry blackrose, I misunderstood what num_params is for, i got how it works now thanks to you

I have found the answer to my question here...
Forum: Scripting Help 05-29-2016, 15:27
Replies: 11
Views: 1,809
Posted By Whitez
Re: Question about Natives

So we have the following



Core Plugin

// Custom Forwards
enum _:TOTAL_FORWARDS
{
FW_USER_INFECT_PRE = 0,
Forum: Scripting Help 05-29-2016, 14:16
Replies: 11
Views: 1,809
Posted By Whitez
Re: Question about Natives

Is this right?

Condition is just an optional parameter, which i want to send only in case of a special event, so i can use exceptions for special events in other plugins with the forwards created...
Forum: Scripting Help 05-29-2016, 13:51
Replies: 11
Views: 1,809
Posted By Whitez
Re: Question about Natives

The original native has two parameters, id and attacker

native_my_native(plugin_id , num_params)


I want to add an optional third parameter to send it in case of other special situations (...
Forum: Scripting Help 05-29-2016, 13:27
Replies: 11
Views: 1,809
Posted By Whitez
Question about Natives

Is it possible to create a forward and a native with more params?
Will something like this work?


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 01:33.


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