01.02.2013, 17:11
idea :
Player X is the killer , player Y is the Helper (assiste killing) and player Z is the killed
When the Player Z is shooted , make a variable on the shooter (Y&X)
when the Player Z is dead , you can remove the variable on Y (the killer) and give him score/money or whatever and at the same time detect all the Y player (players who still have the varible) and use an other function on all those players,
example that will detect all the players that still have the variable when Z is dead
this is just a soft example , it should be much more longer
Player X is the killer , player Y is the Helper (assiste killing) and player Z is the killed
When the Player Z is shooted , make a variable on the shooter (Y&X)
when the Player Z is dead , you can remove the variable on Y (the killer) and give him score/money or whatever and at the same time detect all the Y player (players who still have the varible) and use an other function on all those players,
example that will detect all the players that still have the variable when Z is dead
Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if( Var[ playerid ] >= 1 ){ //your function + don't forget to remove the Variable }