Raised This Month: $95 Target: $400
 23% 

Point Script


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Johnny got his gun (102)
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-03-2004 , 06:22   Point Script
Reply With Quote #1

This is my first released plugin (be nice ).

amxx_point <command> - this will execute a command on the person your pointing at.

The best useage of this is to bind a key e.g. bind "j" "amxx_point amxx_slap" when you press j the player your looking at will be slapped.
Attached Files
File Type: sma Get Plugin or Get Source (amxx_point.sma - 2715 views - 1.5 KB)
__________________
Fean0r
Fean0r is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-03-2004 , 06:28  
Reply With Quote #2

Nice but you need to learn how to indent. :-)
Johnny got his gun is offline
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-03-2004 , 06:44  
Reply With Quote #3

Updated.

Does it make a diff or just make it easier to read?
__________________
Fean0r
Fean0r is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-03-2004 , 07:07  
Reply With Quote #4

A lot easier to read.
Johnny got his gun is offline
DopeFish
Senior Member
Join Date: Feb 2004
Old 05-03-2004 , 09:55  
Reply With Quote #5

nice idea, this will make the usage of other admin plugins much easier
DopeFish is offline
Send a message via ICQ to DopeFish
ts2do
Senior Member
Join Date: Mar 2004
Old 05-03-2004 , 11:06  
Reply With Quote #6

how do u add arguments tho...u need to add support for adding arguments to the end... of course thisd only work for commands with name right after the command
ts2do is offline
Send a message via AIM to ts2do
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-03-2004 , 11:39  
Reply With Quote #7

Yea, most command that apply to user allow use of name.

I plan to add more as I go... if people use the Plugin and want extra features I'm happy to add them.

For example

amx_point amx_slap <username> <damage> - wont work
amx_point amx_slap <username> - will work
amx_point amx_ban 0.0 <username> - will work

Its hard to know where the 2nd arg should go...
__________________
Fean0r
Fean0r is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 05-04-2004 , 05:03  
Reply With Quote #8

its kinda pointless if you ask me to do
amx_point amx_slap Qwerty
instead of just doing amx_slap qwerty
rather
amx_point amx_slap when im looking at the person.
__________________
QwertyAccess is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 05-04-2004 , 11:16  
Reply With Quote #9

unless u make a preset doc like such:
amx_slap <username> <damage>
then load that line up in your plugin and parse it to a few variables, makin sure u have enuf for bigger commands tho
and then u go and say which is which and which equal(term[i],"<username>") if u kno what I mean
ts2do is offline
Send a message via AIM to ts2do
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-04-2004 , 15:51  
Reply With Quote #10

Quote:
Originally Posted by QwertyAccess
its kinda pointless if you ask me to do
amx_point amx_slap Qwerty
instead of just doing amx_slap qwerty
rather
amx_point amx_slap when im looking at the person.
You missed the point QA...

You dont type it everytime you want to run the command lol the idea is you bind a key you all you do it type "p" its not only for slap it for all commands, you could add other punishments etc etc.....
__________________
Fean0r
Fean0r is offline
Reply


Thread Tools
Display Modes

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


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