Trzymcie tutaj kod sma:
ActionExp(id, ent)
{
new property[5];
GetProperty(ent, 1, property);
if (is_user_alive(id) && !ExpUsed[id])
{
if ( get_user_team ( id ) == 1 )
{
new name[32];
get_user_name(id, name, 31);
server_cmd(id, "dr_addxp %i %i", name, str_to_num(property));
ExpUsed[id] = true;
ColorChat(id, GREEN, "^x03 Dostales^x04 %i Expa^x03!", str_to_num(property));
}
}
else
{
set_hudmessage(111, 49, 152, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "Mozna uzyc co: Runde", ExpUsed);
}
}
Każdy pomocny post dostaje karme!