trakat
10-09-2017, 11:34 AM
Plugin: numele pluginului dorit
Descriere: doresc plugin /wg si /report
Versiune: versiunea pluginului dorit
Autor: specifica autorul pluginului, daca este cazul
Flaguri: specifica flagurile dorite (literele de acces), daca este cazul
MACAR O ideie cum sa`l fac , multumesc frumos
public client_putinserver(id)
{
g_WGAnnounceA[id] = 0
if(is_user_admin(id))
{
g_Owner[id] = 1;
ActivateNoAdminSystem = 0;
}
set_task(10.0, "Anunt", id);
set_task(20.0, "Anunt2", id);
set_task(30.0, "Anunt", id);
set_task(40.0, "Anunt2", id);
}
public Anunt(id)
{
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 10.0);
show_hudmessage(id, "Vrei sa organizezi un mix? ");
}
public Anunt2(id)
{
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 10.0);
show_hudmessage(id, "Acum poti cere War god tastand /wg nume");
}
public client_disconnect(id)
{
if(g_Owner[id] == 1)
{
g_Owner[id] = 0;
g_OwnerAnnounce = 0;
g_OwnerAnnounceA[id] = 0;
}
}
public setari( id )
{
if( get_user_flags( id ) & ADMIN_KICK )
{
static iSize = sizeof ( g_szInterpCommands );
for( new i = 0; i < iSize; i++ )
client_cmd( 0, g_szInterpCommands[ i ] );
new szName[ 32 ];
get_user_name( id, szName, sizeof ( szName ) -1 );
CC_ColorChat ( id, GREEN, "%s^1 Ai impus setarile pentru mix tuturor jucatorilor. ", TAG);
CC_ColorChat ( 0, GREEN, "%s^1 Ti-au fost actualizate urmatoarele setari: ^4ex_interp 0.01/cl_updaterate 101/cl_cmdrate 105/rate 25000", TAG);
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
public Cmd_Say1(id)
{
if( g_Nosay && !gowner(id) )
{
CC_ColorChat(id, GREEN, "%s^1 Canalul ^3SAY^1 este blocat pentru playeri, foloseste ^4say_team", TAG);
return PLUGIN_HANDLED_MAIN;
}
return PLUGIN_CONTINUE;
}
public hookSay( id )
{
new szSaid[ 192 ];
read_args( szSaid, sizeof( szSaid ) -1 );
remove_quotes( szSaid );
if( contain( szSaid, "/wg" ) != -1 )
{
if( g_RoundHalf != 0 )
{
if(g_WGAnnounceA[id] == 1)
{
ColorChat(id, GREEN, "^x04%s^x01 Deja ai cerut WG unei persoane pe aceasta mapa.", TAG);
return PLUGIN_HANDLED;
}
else
{
if( get_user_flags( id ))
{
new target[ 32 ], timestamp[32], authid[32];
copy( target, sizeof( target ) -1, szSaid[ 6 ] );
new id2 = cmd_target( id, target, 2 );
if( id2 )
{
//g_WG[id] = 1;
g_WGAnnounceA[id] = 1;
static szName[ 32 ], szName1[ 32 ], ip[ 32 ];
get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
get_user_ip(id,ip,31,1);
get_user_name( id, szName1, sizeof( szName1 ) -1 );
get_user_name( id2, szName, sizeof( szName ) -1 );
get_user_authid(id2, authid, 31)
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 5.0);
show_hudmessage(id, "SteamID-ul lui %s ce i s-a cerut War God^n%s", szName, authid);
ColorChat(0, GREEN, "^x04%s^x01 Jucatorul^x04 %s^x01 ii cere War God lui^x04 %s^x01 - Data/Ora:^x04 [%s]", TAG, szName1, szName, timestamp);
//ColorChat(0, GREEN, "^x04%s^x01 SteamID-ul persoanei ce i s-a cerut War God:^x04 %s", TAG, authid);
ColorChat(0, GREEN, "^x04%s^x01 De asemenea are si el o poza cu mesajul ca ia cerut, in caz ca duce la ban are dovada.", TAG);
client_cmd(id,"wait;wait;wait;wait;wait;wait;wait;wait;wait;snaps hot");
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Jucatorul specificat nu exista.", TAG);
return PLUGIN_HANDLED;
}
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Nu ai acces la aceasta comanda.", TAG);
return PLUGIN_HANDLED;
}
}
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Ca sa ceri War God cuiva trebuie sa fie mai intai un Mix activ.", TAG);
return PLUGIN_HANDLED;
}
}
else if( contain( szSaid, "/report" ) != -1 )
{
if( g_Report[id] )
{
CC_ColorChat(id, GREEN, "%s^1 In timpul unui MIX poti folosi ^3/report^1 o singura data.", TAG)
return 1;
}
new cmd[12], name[16], reason[32]
parse( szSaid, cmd, charsmax(cmd), name, charsmax(name), reason, charsmax(reason) )
if( !name[0] || !reason[0] )
{
CC_ColorChat(id, GREEN, "%s^1 Utilizare: /report Nume ^"Motivul reclamatiei^"", TAG)
return 1;
}
new sender[32]
get_user_name(id, sender, charsmax(sender))
_SendReport( sender, name, reason )
g_Report[id] = true
CC_ColorChat(id, GREEN, "%s^1 Ai expediatul reportul.", TAG )
return 1;
return PLUGIN_HANDLED;
Descriere: doresc plugin /wg si /report
Versiune: versiunea pluginului dorit
Autor: specifica autorul pluginului, daca este cazul
Flaguri: specifica flagurile dorite (literele de acces), daca este cazul
MACAR O ideie cum sa`l fac , multumesc frumos
public client_putinserver(id)
{
g_WGAnnounceA[id] = 0
if(is_user_admin(id))
{
g_Owner[id] = 1;
ActivateNoAdminSystem = 0;
}
set_task(10.0, "Anunt", id);
set_task(20.0, "Anunt2", id);
set_task(30.0, "Anunt", id);
set_task(40.0, "Anunt2", id);
}
public Anunt(id)
{
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 10.0);
show_hudmessage(id, "Vrei sa organizezi un mix? ");
}
public Anunt2(id)
{
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 10.0);
show_hudmessage(id, "Acum poti cere War god tastand /wg nume");
}
public client_disconnect(id)
{
if(g_Owner[id] == 1)
{
g_Owner[id] = 0;
g_OwnerAnnounce = 0;
g_OwnerAnnounceA[id] = 0;
}
}
public setari( id )
{
if( get_user_flags( id ) & ADMIN_KICK )
{
static iSize = sizeof ( g_szInterpCommands );
for( new i = 0; i < iSize; i++ )
client_cmd( 0, g_szInterpCommands[ i ] );
new szName[ 32 ];
get_user_name( id, szName, sizeof ( szName ) -1 );
CC_ColorChat ( id, GREEN, "%s^1 Ai impus setarile pentru mix tuturor jucatorilor. ", TAG);
CC_ColorChat ( 0, GREEN, "%s^1 Ti-au fost actualizate urmatoarele setari: ^4ex_interp 0.01/cl_updaterate 101/cl_cmdrate 105/rate 25000", TAG);
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
public Cmd_Say1(id)
{
if( g_Nosay && !gowner(id) )
{
CC_ColorChat(id, GREEN, "%s^1 Canalul ^3SAY^1 este blocat pentru playeri, foloseste ^4say_team", TAG);
return PLUGIN_HANDLED_MAIN;
}
return PLUGIN_CONTINUE;
}
public hookSay( id )
{
new szSaid[ 192 ];
read_args( szSaid, sizeof( szSaid ) -1 );
remove_quotes( szSaid );
if( contain( szSaid, "/wg" ) != -1 )
{
if( g_RoundHalf != 0 )
{
if(g_WGAnnounceA[id] == 1)
{
ColorChat(id, GREEN, "^x04%s^x01 Deja ai cerut WG unei persoane pe aceasta mapa.", TAG);
return PLUGIN_HANDLED;
}
else
{
if( get_user_flags( id ))
{
new target[ 32 ], timestamp[32], authid[32];
copy( target, sizeof( target ) -1, szSaid[ 6 ] );
new id2 = cmd_target( id, target, 2 );
if( id2 )
{
//g_WG[id] = 1;
g_WGAnnounceA[id] = 1;
static szName[ 32 ], szName1[ 32 ], ip[ 32 ];
get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
get_user_ip(id,ip,31,1);
get_user_name( id, szName1, sizeof( szName1 ) -1 );
get_user_name( id2, szName, sizeof( szName ) -1 );
get_user_authid(id2, authid, 31)
set_hudmessage(255, 255, 255, 0.02, 0.25, 0, 6.0, 5.0);
show_hudmessage(id, "SteamID-ul lui %s ce i s-a cerut War God^n%s", szName, authid);
ColorChat(0, GREEN, "^x04%s^x01 Jucatorul^x04 %s^x01 ii cere War God lui^x04 %s^x01 - Data/Ora:^x04 [%s]", TAG, szName1, szName, timestamp);
//ColorChat(0, GREEN, "^x04%s^x01 SteamID-ul persoanei ce i s-a cerut War God:^x04 %s", TAG, authid);
ColorChat(0, GREEN, "^x04%s^x01 De asemenea are si el o poza cu mesajul ca ia cerut, in caz ca duce la ban are dovada.", TAG);
client_cmd(id,"wait;wait;wait;wait;wait;wait;wait;wait;wait;snaps hot");
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Jucatorul specificat nu exista.", TAG);
return PLUGIN_HANDLED;
}
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Nu ai acces la aceasta comanda.", TAG);
return PLUGIN_HANDLED;
}
}
}
else
{
ColorChat(id, GREEN, "^x04%s^x01 Ca sa ceri War God cuiva trebuie sa fie mai intai un Mix activ.", TAG);
return PLUGIN_HANDLED;
}
}
else if( contain( szSaid, "/report" ) != -1 )
{
if( g_Report[id] )
{
CC_ColorChat(id, GREEN, "%s^1 In timpul unui MIX poti folosi ^3/report^1 o singura data.", TAG)
return 1;
}
new cmd[12], name[16], reason[32]
parse( szSaid, cmd, charsmax(cmd), name, charsmax(name), reason, charsmax(reason) )
if( !name[0] || !reason[0] )
{
CC_ColorChat(id, GREEN, "%s^1 Utilizare: /report Nume ^"Motivul reclamatiei^"", TAG)
return 1;
}
new sender[32]
get_user_name(id, sender, charsmax(sender))
_SendReport( sender, name, reason )
g_Report[id] = true
CC_ColorChat(id, GREEN, "%s^1 Ai expediatul reportul.", TAG )
return 1;
return PLUGIN_HANDLED;