View Single Post
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 03-19-2018 , 14:44   Re: [CS:GO] Pass a data from datapack to a menu.
Reply With Quote #11

Quote:
Originally Posted by Dr!fter
g_iVictim is an array.
Quote:
Originally Posted by PinHeaDi View Post
It works, but it prints that I killed the console.

Quote:
Originally Posted by PinHeaDi View Post
[code]

Nvm, that worked.
That could make problems when two player dies same time.

Use the example by 8guawong but don't forget to use the array on PrintToChat:
g_iVictim[attacker]
PHP Code:

g_iVictim
[attacker] = victim

//....

CPrintToChatAll("%N уби %N с причина: ..."attackerg_iVictim[attacker]) 
__________________
coding & free software
shanapu is offline