AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   command on attack (https://forums.alliedmods.net/showthread.php?t=11066)

Bubby 03-08-2005 23:18

command on attack
 
how do i make it so that when a weapon like the punch in ts runs a command on the other clients computer so that when someone that has a command running on them punches another person without that command he gets that command and he becomes the same like the other person.

like zombies...

TotalNoobScripter 03-08-2005 23:39

grammar plz?

lunarwolfx 03-09-2005 00:20

like mind control? You're trying to take over someone's character or something?

Bubby 03-09-2005 00:41

sorry im really tired right now.

i want to make it so that when person A gets punched by person B, my console automatticly types in amx_tvirus personA but how would i make it do that so personA is replaced by their actuall name.

see what i mean?

so guy1 gets hit by a zombie and then guy1 turns into a zombie.

XxAvalanchexX 03-09-2005 15:12

You'll have to figure out a way to get when they are hit and with what, but for your question as to the name you can use get_user_name and then server_cmd("amx_tvirus ^"%s^"",namevariable).


All times are GMT -4. The time now is 14:01.

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