A task for both players
I am using this in a damage fuction:
PHP Code:
PHP Code:
|
Re: A task for both players
Use the data parameter in set_task() to hold both victim and attacker id's.
|
Re: A task for both players
Something like this?
PHP Code:
|
Re: A task for both players
Code:
|
Re: A task for both players
Data parameter takes an array, not a string.
You will need to supply the size of the array as the next parameter. Also, the header of the task function has the data array declared first, then the task id. |
Re: A task for both players
new params[2]
params[0] = killer params[1] = victim set_task(flTaskTime, szTaskName, iTaskIndex, params, sizeof(params)) |
| All times are GMT -4. The time now is 03:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.