thx fo your awnser i want to help i have a hns blocks server and i want to use someone all blocks xp and not only one at a map... the code is this.
PHP Code:
ActionXPBlock(id, ent)
{
if ( cs_get_user_team(id) == CS_TEAM_T )
{
if ( !g_xpblock_used[id] )
{
new property[5];
GetProperty(ent, 1, property);
hnsxp_add_user_xp(id, str_to_num(property));
g_xpblock_used[id] = true;
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
show_hudmessage(id, "You got %i more XP!", str_to_num(property));
}
}
else
{
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
show_hudmessage(id, "Only Terrorists can take XP Block!");
}
}
with this when a player use one xp block he cant use another block. and i have a lot of xp blocks at a map. i want a player use all blocks once time per map.