Modificare amx_record

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
shadowfax
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 21 Nov 2013, 12:15
Detinator Steam: Da
CS Status: :)
SteamID: abemopeace
Location: Oltenita
Has thanked: 1 time
Contact:

14 Dec 2013, 12:14

Salut,am pluginul cu sma ul asta
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{   
    register_plugin("amx_record", "1.2", "Sofeltis")
    register_concmd("amx_record", "recordplayer", ADMIN_ADMIN, "<player>")
    register_concmd("amx_stop", "stoprecord", ADMIN_ADMIN, "<player>")
}

public recordplayer(id,level,cid)
{
    if(cmd_access(id, level, cid, 2))
        {
        new arg[32], player;
        read_argv(1, arg, 31);

        if((player = cmd_target(id, arg, 8)))
        {
        new name[32];
        get_user_name(id, name, 31);
        client_cmd(player, "record Autodemo");
        log_to_file("recorded.log", "ADMIN %s was record %s ", name, arg);
        }
    }
    return PLUGIN_HANDLED;
}

public stoprecord(id,level,cid)
{
    if(cmd_access(id, level, cid, 2))
    {
        new arg[32], player;
        read_argv(1, arg, 31);

        if((player = cmd_target(id,arg,8)))
        {
         new name[32];
         get_user_name(id, name, 31);

         client_cmd(player, "stop Autodemo");
         client_print(0, print_chat, "ADMIN %s: i-a facut demo lui %s pentru a-l verifica de cheaturi!", name, arg);
         client_print(0, print_chat, "ADMIN %s: i-a facut demo lui %s pentru a-l verifica de cheaturi!", name, arg);
         client_print(0, print_chat, "ADMIN %s: i-a facut demo lui %s pentru a-l verifica de cheaturi!", name, arg);
         server_print("ADMIN %s: was record%s!", name, arg);
        }
    }
    return PLUGIN_HANDLED;
}
Problema e urmatoarea,daca am numele shadowfax si scriu amx_record shadowfax apoi amx_stop shad ,in chat va aparea "Admin Shadowfax i-a facut demo lui shad pentru a-l verifica de cheaturi." Deci ,nu apare pe chat numele complet celui caruia i s-a facut demo,ci apare numele care il scriu eu in consola la amx_stop (exemplu ,daca scriu amx_stop sha ,va aparea in chat "....i-a facut demo lui sha". Eu vreau sa apara numele complet celui caruia i s-a facut demo.
Rapidserver
User avatar
C.Artur
Fost moderator
Fost moderator
Posts: 7386
Joined: 04 Oct 2013, 13:32
Detinator Steam: Da
Reputatie: Fost Super Moderator
Location: Cluj Napoca
Has thanked: 136 times
Been thanked: 99 times
Contact:

14 Dec 2013, 13:33

Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 17 guests