Raised This Month: $ Target: $400
 0% 

help me edit a script!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-04-2020 , 22:48   Re: help me edit a script!!
Reply With Quote #1

Here are some tips:

Define xDamage globally, as an array, sized using MAX_PLAYERS + 1.

In xOnDamage, you would do xDamage[ id ] += read_data( 2 ).

Set the slot value to 0 on client_disconnect(). Or at new round if that is when you want it reset. If you want to reset everyone, you can use arrayset().
__________________
Bugsy is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 22:56   Re: help me edit a script!!
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
Here are some tips:

Define xDamage globally, as an array, sized using MAX_PLAYERS + 1.

In xOnDamage, you would do xDamage[ id ] += read_data( 2 ).

Set the slot value to 0 on client_disconnect(). Or at new round if that is when you want it reset. If you want to reset everyone, you can use arrayset().
sorry i'm very new to this script business and i didn't understand very well
mikaelnatan13 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 16:57.


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