Yah thanks for correction, everything is working fine and im using it now, i try to edit your code
i want to make similar this i tried to modified your code and change the Class to JobID 4010 and class_arr[.@size] = .@class; to class_arr[.@size] = .@class, set #HWPoints,#HWPoints +1; but not working
- script test123 -1,{
OnPCKillEvent:
.@self = getcharid(3);
if (killedrid == .@self) end;
attachrid killedrid;
.@class = 4010;
attachrid .@self;
.@index = inarray(class_arr, .@class);
if (.@index == -1) {
.@size = getarraysize(class_arr);
class_arr[.@size] = .@class, set #HWPoints,#HWPoints + 1;
count_arr[.@size] = 1;
} else
cleararray count_arr[.@index], count_arr[.@index] + 1, 1;
end;
}