public add_respawn_bonus(id)
{
if (player_b_respawn[id] > 0)
{
new svIndex[32]
num_to_str(id,svIndex,32)
new roll = random_num(1,player_b_respawn[id])
if (roll == 1)
{
new maxpl,players[32]
get_players(players, maxpl)
if (maxpl > 2)
{
cs_set_user_money(id,cs_get_user_money(id)+4000)
set_task(0.5,"respawn",0,svIndex,32)
}
else
{
set_hudmessage(220, 115, 70, -1.0, 0.40, 0, 3.0, 2.0, 0.2, 0.3, 5)
show_hudmessage(id, "Wiecej niz 2 graczy jest wymagane do ponownego odrodzenia sie")
}
}
}
}
public respawn(svIndex[])
{
new vIndex = str_to_num(svIndex)
spawn(vIndex);
}klasa: Niesmiertelny
Za pomoc + i Limit 5


Dodatki SourceMod



Temat jest zamknięty









