Quote:
Originally Posted by Dr!fter
g_iVictim is an array.
|
Quote:
Originally Posted by PinHeaDi
It works, but it prints that I killed the console.
|
Quote:
Originally Posted by PinHeaDi
[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 с причина: ...", attacker, g_iVictim[attacker])
__________________