Ещё с моей сборки осталось): (Нужен SAMP-UDF)
Код
!1::
heal := getPlayerHealth()
healup := 160-heal
if (healup<11)
{
SendChat("/usedrugs 1")
}
else if (healup<21)
{
SendChat("/usedrugs 2")
}
else if (healup<31)
{
SendChat("/usedrugs 3")
}
else if (healup<41)
{
SendChat("/usedrugs 4")
}
else if (healup<51)
{
SendChat("/usedrugs 5")
}
else if (healup<61)
{
SendChat("/usedrugs 6")
}
else if (healup<71)
{
SendChat("/usedrugs 7")
}
else if (healup<81)
{
SendChat("/usedrugs 8")
}
else if (healup<91)
{
SendChat("/usedrugs 9")
}
else if (healup<101)
{
SendChat("/usedrugs 10")
}
else if (healup<111)
{
SendChat("/usedrugs 11")
}
else if (healup<121)
{
SendChat("/usedrugs 12")
}
else if (healup<131)
{
SendChat("/usedrugs 13")
}
else if (healup<141)
{
SendChat("/usedrugs 14")
}
else if (healup<160)
{
SendChat("/usedrugs 15")
}
addChatMessage("{FFEECC}[{0044FF}Drugs{FFEECC}] Юзать нарко можно будет через минуту!")
Sleep 60000
addChatMessage("{FFEECC}[{0044FF}Drugs{FFEECC}] Вы можете юзать нарко!")
Return