Raised This Month: $ Target: $400
 0% 

amx_ss erorr


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yanke3
Junior Member
Join Date: Apr 2010
Old 03-01-2013 , 04:38   amx_ss erorr
Reply With Quote #1



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

yanke3 is offline
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 03-01-2013 , 05:16   Re: amx_ss erorr
Reply With Quote #2

There was invalid index and cstrike wasn't included.
Attached Files
File Type: sma Get Plugin or Get Source (plugin.sma - 644 views - 2.1 KB)

Last edited by Kard1nal; 03-01-2013 at 05:18.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
yanke3
Junior Member
Join Date: Apr 2010
Old 03-03-2013 , 14:41   Re: amx_ss erorr
Reply With Quote #3

I have a problem whit this plugin .

When i try to execute command it say me that player is not on server.
yanke3 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-03-2013 , 18:44   Re: amx_ss erorr
Reply With Quote #4

How are you using the command? Try the user id method: #123 (from the status command).
__________________
fysiks is offline
yanke3
Junior Member
Join Date: Apr 2010
Old 03-04-2013 , 03:01   Re: amx_ss erorr
Reply With Quote #5

Its not working.
yanke3 is offline
Old 03-05-2013, 02:47
yanke3
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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