weapon[][]
PHP Code:
can i do that?:S |
Re: weapon[][]
Quote:
|
Re: weapon[][]
PHP Code:
|
Re: weapon[][]
No well, i have 10 Cvars with player nicks...
player_1 = ASD player_2 = adsafa No when someone kill someone else i am holding him kills. now i want if player == "ASD" to set on a var weapon[1][Kills[1]] = Weapon i mean on the first slot will have the player's number and on the second the player's kills so at the end of the map to read the gun of every kill. ex ASD killed Test1 with m4a1 ASD killed Test1 with knife weapon[1][1] Will be: m4a1 weapon[1][2] Will be: knife |
Re: weapon[][]
new weapon[33][33] - for killer and victim = weapon killed with
and reset all values on new round then on when you need frags and the rest count values and if weapon is not zero so you have a frag with who killed, whom killed and with what killed data |
Re: weapon[][]
PHP Code:
|
Re: weapon[][]
Quote:
var[NUMBER][KILLS] = GUN var[1][43] = ak47 ... |
Re: weapon[][]
Doing it this way you must reset the g_KillNum[] at round start or else you run the risk of getting an out-of-bounds error. Currently it can only handle up to 31 kills since HL servers only support 32 players so this # will suffice If you want to store a larger number, increase 31 to a larger number.
Untested PHP Code:
Untested PHP Code:
|
| All times are GMT -4. The time now is 07:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.