Raised This Month: $ Target: $400
 0% 

very simple question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-28-2005 , 12:50   very simple question
Reply With Quote #1

How do i make an function like:
amx_tell <name or steamid> (onley admins could use amx_tell)

amx_tell functon should:
Code:
print_chat(0,"%s used blahablaha at %s", adminnick, victimnick)


I have looked att other plugins but i couldn'n understand![/small]
Obbin is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-28-2005 , 12:55  
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("INTERNET","lol","Hawk552")     register_concmd("amx_tell","tell",ADMIN_BAN," <name> - user is told") } public tell(id,level,cid) {     if(!cmd_access(id,level,cid,2))         {         return PLUGIN_HANDLED     }             new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,1)         if(!player)         {         return PLUGIN_HANDLED     }         new name[32]     new name2[32]     get_user_name(player,name,31)     get_user_name(id,name2,31)     client_print(0,print_chat,"[AMXX] %s told %s",name2,name)         return PLUGIN_HANDLED }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-28-2005 , 13:20  
Reply With Quote #3

thx hawk
__________________
Sig(h)!
Obbin is offline
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 14:34.


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