AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Using cmd_target (https://forums.alliedmods.net/showthread.php?t=19934)

Charr 10-28-2005 21:45

Using cmd_target
 
I trying to use cmd_target to determine whether the arg it uses is a player or not a player. Currently I have, but I havent tested it yet.
Code:
new player = cmd_target(id,arg,7) if(!player) {    ... } else {    ... }

Freecode 10-28-2005 22:25

cmd_target you mean

XxAvalanchexX 10-28-2005 22:30

That'll work.

Charr 10-28-2005 23:01

Whoops (again...) and thanks.


All times are GMT -4. The time now is 23:44.

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