heh i once did something similar only for a hero.
i did this
PHP Code:
/* Sets hit zones for player. * Parts of body are as bits: * 1 - generic * 2 - head * 4 - chest * 8 - stomach * 16 - left arm * 32 - right arm * 64 - left leg * 128 - right leg */ native set_user_hitzones(index = 0, target = 0, body = 255);
/* Get user hitzones. */ native get_user_hitzones(index, target);
this you may found in fun.inc
those are syntaxes, and not my code (just to make clear)
PHP Code:
public hs(id) { if(headshot_active[id] == 1) { native set_user_hitzones(index = 0, target = 0, body = 255); native get_user_hitzones(index, target);