Cerere modificare plugin

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

28 Jul 2012, 10:30

Am si eu nevoie sa imi modificati urmatorul plugin:

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
register_plugin("TFTS Transfer", "1.0", "TFTomSun")
register_concmd("amx_t", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
register_concmd("amx_ct", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
register_concmd("amx_spec", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
return PLUGIN_CONTINUE
}

public admin_chteam(id, level, cid) {
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new cmd[10];
new arg[32];

read_argv(0,cmd,9)
read_argv(1,arg,31)
new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED

user_kill(player, 1);

if(cmd[4]=='t')
{
cs_set_user_team(player,1);
}
if(cmd[4]=='c')
{
cs_set_user_team(player,2);
}
if(cmd[4]=='s')
{
cs_set_user_team(player,3);
}
return PLUGIN_HANDLED
}

Daca il puteti face sa pot executa comenzile si pe adminii cu imunitate.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
User avatar
Andrei.B
Fost administrator
Fost administrator
Posts: 6481
Joined: 17 Aug 2009, 08:15
Detinator Steam: Da
CS Status: Plecat pe mari si tari
Detinator server CS: Nu detin !
SteamID: andreybci94
Reputatie: Fost Membru Club eXtreamCS (o luna)
Fost Administrator
Nume anterior : bLack, Andrei,krusc
Contribuitor
Location: ConstanTa
Has thanked: 275 times
Been thanked: 556 times
Contact:

28 Jul 2012, 11:52

Incearca :

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
register_plugin("TFTS Transfer", "1.0", "TFTomSun")
register_concmd("amx_t", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
register_concmd("amx_ct", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
register_concmd("amx_spec", "admin_chteam", ADMIN_LEVEL_C, "<authid, nick or #userid>")
return PLUGIN_CONTINUE
}

public admin_chteam(id, level, acid) {
if (!cmd_access(id, level, acid, 2))
return PLUGIN_HANDLED

new cmd[10];
new arg[32];

read_argv(0,cmd,9)
read_argv(1,arg,31)
new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED

user_kill(player, 1);

if(cmd[4]=='t')
{
cs_set_user_team(player,1);
}
if(cmd[4]=='c')
{
cs_set_user_team(player,2);
}
if(cmd[4]=='s')
{
cs_set_user_team(player,3);
}
return PLUGIN_HANDLED
}

Mereu in suflet culorile ( Roş -Albastru )
Image
ImageImage
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

28 Jul 2012, 12:30

Nu merge.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
User avatar
TzUcK
Fost moderator
Fost moderator
Posts: 2943
Joined: 19 Jul 2009, 14:44
Detinator Steam: Da
Reputatie: Fost moderator
Has thanked: 70 times
Been thanked: 140 times
Contact:

28 Jul 2012, 19:09

Modifica

Code: Select all

cmd_target(id,arg,1)  
cu

Code: Select all

cmd_target(id,arg,0)  
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

29 Jul 2012, 09:03

Pluginul merge acum dar are o problema, nu tine adminii la spectator imediat cum incepe o alta runda baga adminii spectatori la joc.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest