AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_ss erorr (https://forums.alliedmods.net/showthread.php?t=209725)

yanke3 03-01-2013 04:38

amx_ss erorr
 
http://i49.tinypic.com/14j7nfc.png

This is plugin.
PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
   
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_ss""ss"ADMIN_KICK"<nume> - ii faci 2 poze + 1 la scor + 1 tga + info pe poze/in consola")
}

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

    
static arg[32]
    
read_argv(1arg31)

    new 
player cmd_target(idarg1)

    if(!
player)
        return 
PLUGIN_HANDLED

    
static Admin[32], Jucator[32]

    new 
authid[32], usrip[32], mapname[32], time[32], hostname[64]

    
get_user_name(playerJucator31)
    
get_user_authid(playerauthid31)
    
get_user_ip(playerusrip311)

    
get_user_name(idAdmin31)

    
get_cvar_string("hostname"hostname63)
    
get_mapname(mapname31)
    
get_time("Date: %m/%d/%Y - Hour: %H:%M:%S"time31)
        
        
    
client_print(idprint_chat"[Bucov AMXX] Nume Jucator: %s - SteamID: %s - IP: %s"Jucatorauthidusrip)

    
client_print(playerprint_chat"* %s foloseste pe tine comanda: 2 snapshots. Server: %s^n* %s^n* Harta Jucata: %s^n* SteamID: %s - IP: %s"Adminhostnametimemapnameauthidusrip)

    
console_print(player"* %s ti-a facut 3 snapshots. Server: %s"Adminhostname)
    
console_print(player"* %s"time)
    
console_print(player"* Harta Jucata: %s"mapname)
    
console_print(player"* SteamID: %s - IP: %s"authidusrip)

    
client_cmd(player"snapshot;wait;wait;snapshot;wait;wait;togglescores;wait;wait;snapshot")

    
user_silentkill(player)
    
cs_set_user_team(playerCS_TEAM_SPECTATOR)

    
client_print(playerprint_chat"[Bucov AMXX] Scrie ID-ul tau de mess si asteapta ca %s sa te contacteze ptr poze!"Admin)
    
client_print(Adminprint_chat"[Bucov AMXX] Iai facut 3 poze lui &s(%s) cerei id ca sa iti dea pozele."Jucator ,usrip)

    
client_print(0print_chat"Admin %s: foloseste comanda amx_ss %s"idJucator)

    return 
PLUGIN_HANDLED



Kard1nal 03-01-2013 05:16

Re: amx_ss erorr
 
1 Attachment(s)
There was invalid index and cstrike wasn't included.

yanke3 03-03-2013 14:41

Re: amx_ss erorr
 
I have a problem whit this plugin .

When i try to execute command it say me that player is not on server.

fysiks 03-03-2013 18:44

Re: amx_ss erorr
 
How are you using the command? Try the user id method: #123 (from the status command).

yanke3 03-04-2013 03:01

Re: amx_ss erorr
 
Its not working.


All times are GMT -4. The time now is 21:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.