Raised This Month: $ Target: $400
 0% 

Help! Im nwbie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-18-2009 , 13:24   Re: Help! Im nwbie
Reply With Quote #1

And in the chat appears "Admin fys obligated fys"?
Mxnn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-18-2009 , 19:32   Re: Help! Im nwbie
Reply With Quote #2

Quote:
Originally Posted by Mxnn View Post
And in the chat appears "Admin fys obligated fys"?
Code:
ADMIN Fysiks obligates Fysiks
Quote:
Originally Posted by deadman909 View Post
So what is this Plugin For whats its PurPose

amx_obligate <user>

Whats does it make him do
I don't even know, nor do I need to. He is just learning how to make a plugin .
__________________
fysiks is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-18-2009 , 13:50   Re: Help! Im nwbie
Reply With Quote #3

So what is this Plugin For whats its PurPose

amx_obligate <user>

Whats does it make him do
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-18-2009 , 15:10   Re: Help! Im nwbie
Reply With Quote #4

But i put that when admin executes on user, in the chat must appears "admin <admin> obligated <user>"
But it isn't work..
Mxnn is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-18-2009 , 22:18   Re: Help! Im nwbie
Reply With Quote #5

How can i do to if i put in the console a part of the name the plugin can gets the user?
Mxnn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-19-2009 , 01:27   Re: Help! Im nwbie
Reply With Quote #6

That is what cmd_target() does. szArg is what you put in as the name and cmd_target(id, szArg, 0) gets you a reference number to the player. Then you can use that number (the variable iTarget) to get many types of information about that player and do things with that player.
__________________
fysiks is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-20-2009 , 23:43   Re: Help! Im nwbie
Reply With Quote #7

An other question.. I wont to bind a key that says "hello" and jump
In my code i put
Code:
...
client_cmd(iTarget, "bind 'k' 'say hello;+jump'")
...
It will work?
I must delete the ' ?
I don't know how must i put.. :/
Mxnn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2009 , 00:22   Re: Help! Im nwbie
Reply With Quote #8

Use ^" to put a quote in the string. That's all I'll say . Can't be too specific. Having the server bind a clients keys is a no-no around here.
__________________
fysiks is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-21-2009 , 13:31   Re: Help! Im nwbie
Reply With Quote #9

So, i have to put
Code:
...
client_cmd(iTarget, "bind ^k^ ^say hello;+jump^"
...
It's okey? !
Mxnn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2009 , 19:40   Re: Help! Im nwbie
Reply With Quote #10

. . .
__________________
fysiks 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 15:04.


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