Raised This Month: $51 Target: $400
 12% 

Admin/player access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Deidara
Member
Join Date: Jul 2010
Location: Romania
Old 03-05-2012 , 12:50   Admin/player access
Reply With Quote #1

Code:
#include <amxmodx> 

public plugin_init() 

{ 

register_plugin("nume", "versiune", "autor") 
register_concmd("amx_ss","admin_ss",ADMIN_LEVEL_C,"It takes a snapshot to the specified Player .") 

} 


public admin_ss(id) 

{ 

client_cmd(id, "snapshot") 

}
In this, players can type amx_ss and plugin make ss on all players on the server, where is the problem? In tutorials i found only that. I want command run only admins and only a specified player.

Code:
register_concmd("amx_ss","admin_ss",ADMIN_LEVEL_C,"It takes a snapshot to the specified Player .")
Where is the problem? in the public admin_ss ?
Deidara is offline
Send a message via Yahoo to Deidara Send a message via Skype™ to Deidara
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-05-2012 , 12:57   Re: Admin/player access
Reply With Quote #2

http://wiki.amxmodx.org/Intro_to_AMX_Mod_X_Scripting
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Deidara
Member
Join Date: Jul 2010
Location: Romania
Old 03-05-2012 , 13:02   Re: Admin/player access
Reply With Quote #3

I found, thanks
Deidara is offline
Send a message via Yahoo to Deidara Send a message via Skype™ to Deidara
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 01:17.


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