Raised This Month: $ Target: $400
 0% 

Plugin Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blinx
Senior Member
Join Date: Oct 2013
Old 04-15-2016 , 08:41   Re: Plugin Help
Reply With Quote #1

Thanks for the reply Darth but that wasn't the problem as it turns out, it was because of the order I was creating the pack, creating the timer and then writing stuff to the pack:

PHP Code:
rage_tempMelee(const String:ability_name[], index)
{
   new 
Boss=GetClientOfUserId(FF2_GetBossUserId(index));
   
FF2_GetAbilityArgumentString(indexthis_plugin_nameability_name1weaponAttribssizeof(weaponAttribs));
   
FF2_GetAbilityArgumentString(indexthis_plugin_nameability_name2weaponClasssizeof(weaponClass));
   
thisWeaponIndex FF2_GetAbilityArgument(indexthis_plugin_nameability_name3);
   new 
Float:duration=FF2_GetAbilityArgumentFloat(indexthis_plugin_nameability_name4);
   
   
TF2_RemoveWeaponSlot(BossTFWeaponSlot_Melee);
   
SetEntPropEnt(BossProp_Send"m_hActiveWeapon"SpawnWeapon(BossweaponClassthisWeaponIndex1008weaponAttribs));
   
   new 
Handle:pack;
   
CreateDataTimer(durationnormalMeleepackTIMER_DATA_HNDL_CLOSE);
   
   
WritePackCell(packindex);
   
WritePackCell(packBoss);

I don't really know why this made a difference to it but it did, it's all working fine and dandy now.
Blinx 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 21:09.


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