public zp_user_infected_pre(infected, infector, nemesis)
Nie wiem o co chodzi tam .
Dam cały public
public zp_user_infected_pre(infected, infector, nemesis)
{
if(!g_LoggedIn[infector]) return PLUGIN_HANDLED
if(is_valid_player(infected) && is_valid_player(infector))
{
// zombie infects human
if(is_zih_infect(infected, infector, nemesis))
{
g_TotalPoints[infector] += 3
g_ZombieInfectsHumanPoints[infector] += 3
client_print(infector, print_chat, "[Status] Dostales 3 punkty za zainfekowanie Czlowieka.")
// Achievements
if(g_KillInfectCount1[infector] != 200)
{
g_KillInfectCount1[infector]++
if(g_KillInfectCount1[infector] == 200)
{
client_print(infector, print_chat, "[Osiagniecia] Odblokowales ^"Mmmmm Mozgi...^"")
}
}
else
{
// 1. Level is OK
if(g_KillInfectCount2[infector] != 1200)
{
g_KillInfectCount2[infector]++
if(g_KillInfectCount2[infector] == 1200)
{
client_print(infector, print_chat, "[Osiagniecia] Odblokowales ^"Odrazajacy Feniks^"")
}
}
else
{
// 2. Level is ok.
if(g_KillInfectCount3[infector] != 2000)
{
g_KillInfectCount3[infector]++
if(g_KillInfectCount3[infector] == 2000)
{
client_print(infector, print_chat, "[Osiagniecia] Odblokowales ^"Zarazony^"")
}
}
}
}
if(g_infectinrowcount1[infector] != 5)
{
g_infectinrowcount1[infector]++
if(g_infectinrowcount1[infector] == 5)
{
client_print(infector, print_chat, "[Osiagniecia] Odblokowales ^"Kuloodporny^"")
}
}
else if(g_infectinrowcount2[infector] != 10)
{
g_infectinrowcount2[infector]++
if(g_infectinrowcount2[infector] == 10)
{
client_print(infector, print_chat, "[Osiagniecia] Odblokowales ^"Aniol Smierci^"")
}
}
// Got Killed / Infected Achievements
g_gotKillInfectCount[infected]++
if(g_gotKillInfectCount[infected] == 1000)
{
client_print(infected, print_chat, "[Osiagniecia] Odblokowales ^"Wrogowie z Korzyscia^"")
}
}
}
return PLUGIN_CONTINUE
}
Proszę o szybką pomoc
Przepraszam przez przypadek dalem 3 razy sma
Załączone pliki
Użytkownik K1cK_PL edytował ten post 26.11.2011 10:56