Force Gag
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- JaiLBreaK
- Scripter eXtreamCS
- Posts: 1517
- Joined: 05 Jan 2016, 18:17
- Detinator Steam: Nu
- Detinator server CS: Da
- Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS - Fond eXtream: 0
- Has thanked: 5 times
- Been thanked: 10 times
- Contact:
stai sa treaca saptamana asta urata si ii fac update
CSGO Original Module[35%]
- Laurentiu P.
- Fost moderator
- Posts: 2549
- Joined: 10 Jul 2013, 21:26
- Detinator Steam: Da
- Reputatie: Fost super moderator
- Fond eXtream: 100
- Has thanked: 26 times
- Been thanked: 62 times
- Contact:
Code: Select all
public gag_cmd(id, level, cid)
{
if(!cmd_access(id, level, cid, 4))
return PLUGIN_HANDLED;
new arg[32], arg2[32], arg3[32], arg4[32], szArg = charsmax(arg);
new minutes;
new bool:MultiGag = read_argc() == 5 ? true : false
read_argv(1, arg, szArg)
new target2, target = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY|CMDTARGET_NO_BOTS)
if (!target)
return PLUGIN_HANDLED
read_argv(2, arg2, szArg);
if(MultiGag == true)
{
target2 = cmd_target(id, arg2, CMDTARGET_OBEY_IMMUNITY|CMDTARGET_NO_BOTS)
if (!target)
return PLUGIN_HANDLED
if(g_Gag[0][target2])
{
console_print(id, "Jucatorul are deja gag!");
return PLUGIN_HANDLED;
}
read_argv(3, arg3, szArg);
minutes = str_to_num(arg3);
read_argv(4, arg4, szArg);
remove_quotes(arg4);
}
else
{
minutes = str_to_num(arg2);
read_argv(3, arg4, szArg);
remove_quotes(arg4);
}
if(minutes < 1||minutes > 1440)
{
console_print(id, "Minut minim 1 si maxim 1440");
return PLUGIN_HANDLED;
}
if(g_Gag[0][target])
{
console_print(id, "Jucatorul are deja gag!");
return PLUGIN_HANDLED;
}
new name[32], namet[32], namett[32];
get_user_name(id, name, szArg);
get_user_name(target, namet, szArg);
if(MultiGag == true)
{
get_user_name(target2, namett, szArg);
g_Gag[0][target2] = 1;
g_Gag[1][target2] = minutes;
print(0, "%s !g%s!n a dat gag jucatorilor!g %s!n si!g %s!n pentru [!t%d!n] minut%s.", tag, name, namet, namett, minutes, (minutes == 1 ? "" : "e"));
}
else
print(0, "%s !g%s!n a dat gag jucatorului!g %s!n pentru [!t%d!n] minut%s.", tag, name, namet, minutes, (minutes == 1 ? "" : "e"));
print(0, "%s !nMotiv: !g%s", tag, arg4);
g_Gag[0][target] = 1;
g_Gag[1][target] = minutes;
set_task(60.0, "count", target + 123, _, _, "b");
return PLUGIN_HANDLED;
}
no...
- kobra3
- Membru, skill +1
- Posts: 406
- Joined: 23 Jul 2015, 22:58
- Detinator Steam: Da
- CS Status: Disponibil
- Detinator server CS: cs.xpro.ro
- SteamID: ikobra3
- Fond eXtream: 0
- Location: Bucuresti
- Has thanked: 10 times
- Been thanked: 11 times
Il poate modifica cineva ca in momentul in care jucatorul are gag sa nu-si poata schimba nici nick-ul ?