function freeze (player)
if isPlayerInVehicle ( player ) then
local playerVehicle = getPlayerOccupiedVehicle ( player )
local currentFreezeStatus = isVehicleFrozen ( playerVehicle )
local newFreezeStatus = not currentFreezeStatus
setVehicleFrozen ( playerVehicle, newFreezeStatus )
outputChatBox ( "#ffa410[CW:STOP] #cc0000All player's Freeze!", getRootElement(), 255, 0, 0, true )
end
end
addCommandHandler ( "cwstop", freeze )