View Single Post
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-01-2011 , 11:00   Re: [CS:S] Move Bomb
Reply With Quote #8

I'm not sure what you mean by fixing it for spectators and dead players...

the command, sm_movebomb will move the bomb around on the map... even if the admin performing the command is dead or a spectator If they are dead and spectating another player, it will place the bomb at the feet of the player they are spectating. If they are in free camera mode then the bomb will be placed at the top of where the head were to be if they were a player.

This was by design - the admin doens't have to be alive to be able to move the bomb... and since I'm not using @aim for the teleport location, moving the bomb as an admin when I'm alive would only put the bomb at my feet and blow me up

is that what you meant?

But yes, if I wanted to restrict it to be used by admins who were alive, it would be

PHP Code:
if(IsClientInGame(client) && IsPlayerAlive(client))
{
     
//perform code stuff here...

right
TnTSCS is offline