10.02.2018, 15:43
Hello community,
I am here again, today with just a little bit of IDEA help, since I can not figure it out.
What I need is, that I have 6 teams of gangs, and I want, that when player from any of these gangs kills player, that is in different gang(team), he will get rewarded for that kill.
I have idea where I need to work with it - OnPlayerDeath and I need to use killerid, perhaps some loops, this is what I constructed so far, but was not enable to continue, since I just did not know, what to script next - i did not get the idea, how to do it.
So I made a loop, so I will find players, that are in Gang "Grove", which on pJob is set on 9. Than I probably wanted to figure out, who they killed, and if the killed ones were different gang, i would reward them.
However I want to reward them only if they kill a member of different gang (not all players).
If you guys could contribute with any solutionable ideas, I would appreciate it more, than you think.
I am here again, today with just a little bit of IDEA help, since I can not figure it out.
What I need is, that I have 6 teams of gangs, and I want, that when player from any of these gangs kills player, that is in different gang(team), he will get rewarded for that kill.
I have idea where I need to work with it - OnPlayerDeath and I need to use killerid, perhaps some loops, this is what I constructed so far, but was not enable to continue, since I just did not know, what to script next - i did not get the idea, how to do it.
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pJob] == 9) // Grove
{
if(
However I want to reward them only if they kill a member of different gang (not all players).
If you guys could contribute with any solutionable ideas, I would appreciate it more, than you think.