Raised This Month: $ Target: $400
 0% 

Hello newbie starting is so hard...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 02-14-2009 , 19:10   Hello newbie starting is so hard...
Reply With Quote #1

Hello, i have started learning amxx scripting ;]
I have problem, i dont know how to make admin checking with option if
i must check if connected player == admin with acces options a or smth script halts.
Code:
client_cmd(id, "bind ^"f9^" ^"say Im g**, because im using cheats.^"")
and then with else option it will write simple text in server that Admin: %name connected. Cheaters blowing time.
Code:
#include <amxmodx>

public plugin_init()
{
   register_plugin("key bind", "1.0", "Metanabol")
}

public client_connect(id)
{
   client_cmd(id, "bind ^"f9^" ^"say Im g**, because im using cheats. [f9]^"")
   return PLUGIN_CONTINUE
}
Next question is - how can i add timer to line
Code:
client_cmd(id, "bind ^"f9^" ^"say Im g**, because im using cheats.^"")
to insert this line to players every x seconds ?


Yes. Im newbie. I dont know basic commands. But i want to lear more than ripping f***ing scripts... i want to edit it for me basicly for better server use.
Metanabol is offline
 



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 17:09.


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