AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player trigger a entity = srv send cmd. (https://forums.alliedmods.net/showthread.php?t=82520)

Rirre 12-24-2008 20:19

Player trigger a entity = srv send cmd.
 
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"


Exolent[jNr] 12-24-2008 23:24

Re: Player trigger a entity = srv send cmd.
 
Can you explain what the "classname/entity" and "targetname" values are for?

Rirre 12-25-2008 14:03

Re: Player trigger a entity = srv send cmd.
 
Skip classname/entity.
Use targetname only instead.
Targetname it's the name so that other entities can target it.


All times are GMT -4. The time now is 09:11.

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