Code:
#include <amxmodx>
#include <cstrike>
public getplayor() {
new x = 0
new playaz[64]
for ( x=1; 65; x = (x + 1) ) {
cs_reset_user_model(x);
if (cs_get_user_team(x) == 1) {
playaz[x] = 1
}
else if (cs_get_user_team(x) == 2) {
playaz[x] = 2
}
else playaz[x] = 0
}
changeth(x)
}
public changeth(x) {
while( x < 65 ) {
x = random_num(1,64)
if (playaz[x] > 0) {
cs_set_user_model( x , "hostage01.mdl");
break
}
}
}
public plugin_init() {
register_plugin("Tomsmod","0.01","TOM aka ErUs")
register_event("ResetHUD", "getplayor", "be")
}
Theres probly something i done stupidly wrplz correct for me

[/code]
__________________
ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS ERUS