Code:
#include <amxmodx>
#include <fun>
public plugin_init() {
register_plugin("VS Limb Remover", "1.0", "Skittles")
register_logevent("roundstart", 2, "0=World triggered", "1=Round_Start")
}
public roundstart(id)
set_task(1.0,"delay",id)
public delay(id) {
server_print("executes function")
new players[32], num, strTeam[32], p;
get_players(players, num)
for ( new i ; i < num ; i++ ) {
p = players[i]
get_user_team(p, strTeam, 31) // other parameter is a return. was id.
if ( equal(strTeam, "SLAYER", 5) )
set_user_health(p, 95) // was id.
else if ( equal(strTeam, "VAMPIRE", 7) )
set_user_health(p, 100) // was id.
}
}
Quote:
Originally Posted by |POW|Da_ghost
Correct me If i'm wrong but aren't teams Tracked by numbers?(I may be confusing this With ES(source))
|
You can do it both ways.