Slay ja niewykonywanie celów mapy!
Dam pomógł
Pozdraiwam
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 08.10.2009 18:45
Napisano 08.10.2009 18:50
#include <amxmodx>
#define PLUGIN "Anti TeamPlay Slay"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define T 1
#define CT 2
new g_score[2];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("TeamScore","end_round","a");
register_event( "TextMsg", "Restore", "a", "2Game_will_restart_in" );
register_event("TextMsg", "Restore", "a", "2Game_C")
}
public Restore()
{
g_score[0]=0;
g_score[1]=0;
}
public end_round()
{
new teamname[3],score;
read_data(1,teamname,2);
score=read_data(2);
if(equal(teamname,"CT"))
{
if(g_score[CT-1]!=score)
{
slay(T);
}
g_score[CT-1]=score;
}
else
{
if(g_score[T-1]!=score)
{
slay(CT);
}
g_score[T-1]=score;
}
}
public slay(team)
{
new Players[32], playerCount;
get_players(Players, playerCount);
for (new i=0; i<playerCount; i++) {
new id = Players[i];
if(get_user_team(id)==team && is_user_alive(id))
{
user_kill(id)
client_print(id,print_chat,"!!! Wykonuj cele mapy !!!")
set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(id, "!!! Wykonuj cele mapy !!!")
}
}
}
Napisano 08.10.2009 18:51
Napisano 08.10.2009 19:08
Bingo!skompilować?
Napisano 08.10.2009 19:10
Napisano 08.10.2009 20:42
Napisano 09.10.2009 08:37
Napisano 09.10.2009 17:40
0 użytkowników, 0 gości, 0 anonimowych