18.12.2017, 17:35
Well I'm using this code to send message to admins only it working perfect but but.
the problem come it causing lag because I'm calling this function in many locations like when some body
cheating it send message to admin even some body join it send message to admin.
Now it start making lag.
Is there anyway rather than using loop i can send message to only admins?
Cheers.
Thanks
the problem come it causing lag because I'm calling this function in many locations like when some body
cheating it send message to admin even some body join it send message to admin.
Now it start making lag.
Код:
SendToAdmins(color,Message[]) { foreach(new i : Player) { if(pInfo[i][pLevel] >= 1) SCM(i, color, Message); } return 1; }
Cheers.
Thanks