Predo, wow cool!
Cache ke memory untuk improvement
Code
switch(get_pcvar_num(g_msgtype))
->
Code
new iMsg = get_pcvar_num(g_msgtype);
switch (iMsg)
Menghindari error array
Code
format(g_msg, sizeof g_msg, "Victim: %s^nDistance: %.2f M", vName, float(distance)/100)
->
Code
format(g_msg, sizeof (g_msg) - 1, "Victim: %s^nDistance: %.2f M", vName, float(distance)/100)
Atau
Code
format(g_msg, charsmax(g_msg), "Victim: %s^nDistance: %.2f M", vName, float(distance)/100)