function GameConnection::SpawnPlayer(%this){
parent::SpawnPlayer(%this);
if($TerroristMini){
if(%this.side $= "Terrorist" || %this.side $= "Chief Terrorist" || %this.side $= "Head Terrorist"){
commandtoclient(%this,'CenterPrint',"\c6You're a \c0Terrorist\c6.",3,3,5000);
%this.player.setTransform(vectorAdd($terroristSpawn,"0 0 1"));
%this.player.setShapeName(%this.name @ "[ Terrorist ]");
} else if(%this.side $= "SWAT"){
commandtoclient(%this,'CenterPrint',"\c6You're in the \c0SWAT\c6.",3,3,5000);
%this.player.setTransform(vectorAdd($SWATSpawn,"0 0 1"));
%this.player.setShapeName(%this.name @ "[ SWAT ]");
}
}
}
It is in a package.
Also, is there a way to make a trigger like center at a certain point.