Raised This Month: $ Target: $400
 0% 

Player trigger a entity = srv send cmd.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rirre
Veteran Member
Join Date: Nov 2006
Old 12-24-2008 , 20:19   Player trigger a entity = srv send cmd.
Reply With Quote #1

Hi,

I have try to make so a triggered entity send a cmd to the server.
But i don't really know how to do it.
So i just trashed mine since i didn't know really how to do.
Just looking for someone else with experience if anyone can help from the start.

My idea is to control more than just 1 entity in configs/maps/<mapname>.cfg
It's hard to explain, but maybe the example tell you a bit more.

I don't even know if its possible so just take a look below:
Code:
amx_targetname "<targetname>" "<sec. till the plugin send the cmd. to the srv>" "<command to be used>"
Example (configs/maps/<mapname>.cfg):
Code:
amx_targetname "button_triggered" "1" "amx_monster * snark 2"
amx_targetname "trigger_once" "player_have_triggered_me" "5" "amx_monster * snark 2"

Last edited by Rirre; 12-25-2008 at 14:05.
Rirre is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-24-2008 , 23:24   Re: Player trigger a entity = srv send cmd.
Reply With Quote #2

Can you explain what the "classname/entity" and "targetname" values are for?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 12-25-2008 , 14:03   Re: Player trigger a entity = srv send cmd.
Reply With Quote #3

Skip classname/entity.
Use targetname only instead.
Targetname it's the name so that other entities can target it.
Rirre 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 09:11.


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